Re: Filling Forms with $variables
| From: | Christopher William Wesley | Date: | Wed, 13 Feb 2002 22:05:55 +0000 |
| Subject: | Re: Filling Forms with $variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84663@lists.php.net to get a copy of this message | ||
On Wed, 13 Feb 2002, Steven Walker wrote:
> <?$name = "Steven Walker"?>
> <form name="form1" method="post" action="infocollect.php">
> <input type="text" name="name" value=<?echo
> "$name";?>>
> </form>
>
> In the browser, the name field is only filled with "Steven", and drops
> off everything after the space. If I echo $name outside of the form it
You need to put quotes around the value.
value="<?echo $name;?>"?
g.luck,
~Chris /"\
\ / September 11, 2001
X We Are All New Yorkers
/ \ rm -rf /bin/laden