Re: Re: RE: [PHP] Variable Problem

From: Date: Thu, 06 Feb 2003 14:50:33 +0000
Subject: Re: Re: RE: [PHP] Variable Problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-134659@lists.php.net to get a copy of this message
no that doesnt work either what you get when you do that one in the edit box is: using: <input type="text" name="sent" value=<?php echo \"$sent\";?>> or any different with echo in the value field gives me in the box: <?php \"\";?>}> ...rest of the script outside the box ----- Original Message ----- From: "Jason Wong" <php-general@gremlins.biz> To: <php-general@lists.php.net> Sent: Thursday, February 06, 2003 12:25 AM Subject: Re: Re: RE: [PHP] Variable Problem > 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. > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

« previous php.general (#134659) next »