On Thu, Mar 12, 2009 at 2:39 PM, Jason Todd Slack-Moehrle
<mailingli...@mailnewsrss.com> wrote:
>>>
>>> if (empty($_POST[PASSSWORD]))
>>> { $GERROR="TRUE";}
>>>
>>
>> If that's a direct copy/paste from your actual code, there is an extra
>> S in PASSWORD. Also, you should enclose the array key in quotes:
>>
>> if (empty($_POST['PASSWORD']))
>> { $GERROR='TRUE'; }
>
> It is official I am a DOPE! Thank you, yes, I did not see the SSS in an hour
> of looking!
>
> Why enclose in quotes? I have never done this!

Because if it's not in quotes, you run the risk of colliding with one
of PHP's reserved words/constants/etc.


-- 
// Todd

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

Reply via email to