Jump to content

Archived

This topic is now archived and is closed to further replies.

arman

Forms not working anymore

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Indeed, the register_globals was set off. Thanks for your help.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.