PHP Configuration Question
Moderator: General Moderators
PHP Configuration Question
I'm not an expert but it seems the function "requestType" is not passing variables. Does anyone have anb idea what my be wrong?
requestType is the name of a button that we use in a <form>, it is a POST method. The value is "Agree" and used to show up in requestType when the user clicked the "Agree" button. Now that we upgraded PHP the requestType variable stays empty, even if the form posts.
We found register_globals = Off and changed it to on but still no luck. Anything else we should look at?
Thanks!
We found register_globals = Off and changed it to on but still no luck. Anything else we should look at?
Thanks!
and some more infos would be nice. e.g. the output of the script at viewtopic.php?t=8815#65245 and maybe some of your code so we can spot possible errors
The problem was our php.ini file was in the wrong place, but now that that problem has been corrected, we have a new problem. It seems that our cookie is not getting stored for the session, so the user just keeps getting sent to our agree to terms page where the cookie is supposed to be passed. Any ideas?
Code: Select all
echo "request type:".$requestType;
if($requestType=="Agree"){
$expire=time()+60*60*24*30;
setcookie("agreeDate", "10/15/2003",$expire);
echo "<html><head><title></title></head><body>";
echo "<script language='JavaScript'>window.location='doc_dl.php'</script></body></html>";
die();
}