Re: Re: RE: [PHP] Variable Problem
| From: | Jason Wong | Date: | Thu, 06 Feb 2003 05:25:42 +0000 |
| Subject: | Re: Re: RE: [PHP] Variable Problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134546@lists.php.net to get a copy of this message | ||
On Thursday 06 February 2003 07:48, Sunfire wrote:
> on any server i ever dealt with if i put:
> <input type="sent" value=<?php\"$sent\"?>>
> in the edit box for the value i always always end up with <?php instead of
> what $sent stands for..the only way i found it to work is with echo <<< but
> maybe im missing something
With the above you should end up with a parse error. The correct syntax which
should work regardless of your server settings is:
<input type="sent" value="<?php echo $sent; ?>">
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Don't worry. Life's too long.
-- Vincent Sardi, Jr.
*/