Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/15790-forms-not-working-anymore/
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.