On Monday 11 March 2002 11:10, Chris Cocuzzo wrote:
> I would imagine the problem has something to do with those escaped quote
> marks, but in any case, you could probably get around it by doing this:
>
> $foo = "Entry for " . $HTTP_POST_VARS["name"];
>
> some correct me if I'm wrong
Or simply:
m: webapprentice [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 10, 2002 10:09 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Variables within a string
>
> Hello,
>
> When I try to do this:
> $foo = "Entry for for $HTTP_POST_VARS[\"name\"]";
>
Hello,
When I try to do this:
$foo = "Entry for for $HTTP_POST_VARS[\"name\"]";
I receive this error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' on line X
Why does it do this, and how do I get around this, besides assigning the
value of $HTTP_POST_VARS[\"na
3 matches
Mail list logo