Re: Code stoped working after upgrading from 4 to 5
| From: | Thomas Munz | Date: | Thu, 28 Apr 2005 12:41:17 +0000 |
| Subject: | Re: Code stoped working after upgrading from 4 to 5 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214071@lists.php.net to get a copy of this message | ||
Do you set this vars before somewhere in the code? Because if you get some datas from a from you have to use $_POST/$_GET to get the values...
Hi, I have this simple piece of code that worked like a chram in PHP 4.x Now that i've moved to PHP 5 it doesn't work anymore. I always get 0 for $form_ok even if all fields are filled. The variables come from a form in a previous page. Any ideas on where the problem might be ? I have "register_globals = Off" in php.ini Any help would be apreciated. // test if all fields were filled if (($email == '') || ($name == '') || ($pass == '') || ($pass2 == '') || ($magic_number == '') || ($answer == '')) $form_ok = 0; Warm Regards,