Posted by Jim Michaels on 10/20/10 11:37
actually it works fine without the quotes. I don't remember, but I think
you get an error if you use quotes there.
"David Haynes" <david.haynes2@sympatico.ca> wrote in message
news:j8Byf.7830$x8.5938@fe04.usenetserver.com...
> Jim Michaels wrote:
>> $_POST[lunch] is used inside strings.
>>
>>
>> echo "eat some $_POST[lunch] at 4:00pm.<br>";
> Shouldn't that be
> echo "eat some $_POST['lunch'] at 4:00pm.<br>":
>
> -david-
>
Navigation:
[Reply to this message]
|