try: <input type="text" name="name" value="<?echo "$name";?>">
-----Original Message----- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:56 PM To: PHP Subject: [PHP] Filling Forms with $variables Hi, I'm having trouble setting the value of form elements using variable values. For example: <?$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 prints fine. Any help would be really appreciated. Thanks! Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php