I want to pass a variable through header. In my system the user stays on the profile page and click on a link to fill and submit a form. When the form is submitted the page redirect to the profile page. When I the profile page displayed the member id has lost, so it don't display the member details. What I want to do is pass the member id when redirecting happens.
function redirect_to($location = NULL){
if($location != NULL){
header("Location:{$location}");
exit;
}
}
redirect_to('member_profile.php');
what I am trying to do is this
redirect_to('member_profile.php?id=$mselcted_memberI');
"instead of'?