arman Posted July 27, 2006 Share Posted July 27, 2006 Hi,Suddenly, all forms on a web site do not work anymore. Perhaps some setting on this server has changed or the problem is caused by the update to PHP v5.1.4.Environment: Linux / Apache.This is what goes wrong: internal variables, declared in a php form, do not exist anymore as soon as the form calls itself.The forms worked OK for years and still work on other systems. Any help is appreciated.Arman Quote Link to comment https://forums.phpfreaks.com/topic/15790-forms-not-working-anymore/ Share on other sites More sharing options...
wildteen88 Posted July 27, 2006 Share Posted July 27, 2006 By any chance are you using variables like $PHP_SELF, $DOCUMENT_ROOT etc? I thinks its becuase a setting called register_globals has been turned off. You'll have to use the superglobal arrays in order access your form variables/server variables, such as $_POST, for POST'd data, $_GET for variables in the URL, $_SERVER for server variables, $_SESSION for session vars, $_COOKIE for cookie vars etc.So if you are using the server variable $PHP_SELF you'll need to use $_SERVER['PHP_SELF'] in order use that variable. Quote Link to comment https://forums.phpfreaks.com/topic/15790-forms-not-working-anymore/#findComment-64572 Share on other sites More sharing options...
arman Posted July 27, 2006 Author Share Posted July 27, 2006 Indeed, the register_globals was set off. Thanks for your help. Quote Link to comment https://forums.phpfreaks.com/topic/15790-forms-not-working-anymore/#findComment-64743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.