PDA

View Full Version : PHP Upgrade Problems


keldance
04-25-2003, 05:56 PM
Hi. My server was running PHP 4.something and now we've just upgraded to 4.2.2 and have a few problems. The first problem I see is that all HTML form fields are not being recognized or have no value. I have my form posting to another page, which does all the processing and repeats the information given on the form. Since the upgrade, my form still processes without error messages BUT it isn't recognizing any form fields. I know this because I had it echo a few fields and it just displays nothing where it should show the field value. Can anyone help me?

Nightfire
04-25-2003, 06:35 PM
You need to update your php code to retrieve the info from thr fields.

If you're using POST to submit your info form, then use the super global $_POST['fieldname'] instead of $fieldname

If you're using GET to submit info, then use $_GET['fieldname'] instead of $fieldname