Click to See Complete Forum and Search --> : pass variable with page refresh


kproc
02-03-2007, 09:39 AM
Hi

is it possible to pass the variable $msg on page header: refresh instead of header: Location.


$msg = urlencode($msg);
header ("Location: ../portal/editprofile.php?msg=$msg");
?>

bokeh
02-03-2007, 10:55 AM
Do you mean a timed refresh? You could do that like this:header("Refresh: $seconds; URL=\"$location\"");Note: Although many browsers respond favourably to to relative URLs sent in headers, according to RFC2616 the URL should absolute so HTTP 1.0 browsers may understand them.