Someone pointed out that I should quote "key" in arrays.

If I do this:

<input type="hidden" location="$input["keynameherewithquotes"]">

or just this:
in a heredoc

I get the following

> Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
> /usr/local/etc/httpd/htdocs/readbrazil.com/htdocs/login.php on line 49

but this works fine:

<input type="hidden" location="$input[keynameherewithquotes]">

But that violates the rule. 


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

Reply via email to