Courbois Posted December 4, 2006 Share Posted December 4, 2006 Hello,My sitehost updated his systems and a PHP problem occured. I think it is a wrong option set, but they can't find it.Many of my pages are called with a variable : page.php?PersonNr=012001Normaly the variable $PersonNr gets automatically the vallue 012001. But that does not happen anymore.I solved that in my source by adding the following lines:$PATH_INFO = substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI']));if (isset($PATH_INFO)) { $vardata = explode('?', $PATH_INFO);$vardata2= explode('=', $vardata[1]);$$vardata2[0] = $vardata2[1]; }This to create a variable with that vallue. Ok that works again (not the nice way).But the same? problem happens with forms.Leaving a form with <Form action="<? $PHP_SELF ?>" method="post">should send all variables to the page again. I load the variables with:$PersoonsNr=$_POST["PersoonsNr"];$Naam=$_POST["Naam"];$GeborenDag=$_POST["GeborenDag"];etc.But that does not work any more and i don't know how the find the vallues somewhere else.They (siteprovider) think that they set something wrong while updating to a new server. But they are looking for a week now...Who can help me?Jos Courbois Link to comment https://forums.phpfreaks.com/topic/29390-problems-with-_post-command-php-setting/ Share on other sites More sharing options...
trq Posted December 4, 2006 Share Posted December 4, 2006 This is caused by register globals no longer being ON by default. This is a security measure and should be left OFF.You will however need to take a look at the newer [url=http://php.net/globals]globals[/url] and adjust your code accordingly. Link to comment https://forums.phpfreaks.com/topic/29390-problems-with-_post-command-php-setting/#findComment-134790 Share on other sites More sharing options...
Courbois Posted December 4, 2006 Author Share Posted December 4, 2006 Thank you for the info. It was that setting. I changed the code and it works fine.Jos Link to comment https://forums.phpfreaks.com/topic/29390-problems-with-_post-command-php-setting/#findComment-134916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.