RE: Code stoped working after upgrading from 4 to 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Mário Gamito [mailto:lists@xxxxxxxxxxx] 
> Sent: 28 April 2005 11:36
> To: php-general@xxxxxxxxxxxxx
> Subject:  Code stoped working after upgrading from 4 to 5
> 
> 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,

You have answered your own question really, haven't you - if you have
register globals off then you are not going to get globally registered
variables - it really is that simple.

HTH,

Mikey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux