Re: Re: RE: [PHP] Variable Problem

From: Date: Thu, 06 Feb 2003 00:40:35 +0000
Subject: Re: Re: RE: [PHP] Variable Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134524@lists.php.net to get a copy of this message
--- Sunfire <rusty_81@msn.com> 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 You are "missing" correct PHP syntax and correct HTML syntax, so I guess that counts as something. Try this: <input type="text" name="foo" value="<? echo $foo; ?>"> or this: <? echo "<input type=\"text\" name=\"foo\" value=\"$foo\">"; ?> Chris

« previous php.general (#134524) next »