Oh, so that's how you deal with indexed variables inside of double quotes...
I can't believe that has eluded me for so long...

-------------------------------------------------------------------------------
From: Jason Wong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Mon, 11 Mar 2002 12:09:15 +0800
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: Re: [PHP] Variables within a string

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:

$foo = "Entry for for $HTTP_POST_VARS[name]";


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
If you don't have a nasty obituary you probably didn't matter.
  -- Freeman Dyson
*/


Reply via email to