page redirect
Posted: Wed Apr 09, 2003 1:37 am
I am trying to make a new post which requires user to login...just like the one used in here....
as you see, in the URL above, there is some value to pass "mode", "f" ....
how can I get these values again after redirect....
what I did is:
$q_id = $_REQUEST['q_id']; // just as $mode
$catID = $_REQUEST["catID"]; /// just as $f
$fromPage = "http://"
$fromPage .= $_SERVER[PHP_SELF];
if (!chkLogin) then
header ("Location: ".WWW_HTTPS_ROOT."zh_hk/main/prompt_login.php?fromPage=".$fromPage."?catID=".$catID."&q_id=".$q_id);
but then I only get $catID and NOT $q_id...
how can I get both value again....
as you see, in the URL above, there is some value to pass "mode", "f" ....
how can I get these values again after redirect....
what I did is:
$q_id = $_REQUEST['q_id']; // just as $mode
$catID = $_REQUEST["catID"]; /// just as $f
$fromPage = "http://"
$fromPage .= $_SERVER[PHP_SELF];
if (!chkLogin) then
header ("Location: ".WWW_HTTPS_ROOT."zh_hk/main/prompt_login.php?fromPage=".$fromPage."?catID=".$catID."&q_id=".$q_id);
but then I only get $catID and NOT $q_id...
how can I get both value again....