It's your HTML Failing to enclose the value in quotes may lead to truncation. Your output looks like this... <input type="text" size=20 name=testvar value=a b c>
You should always quote every parmeter in the tag just to avoid such problems. This should work.. <input type="text" size="20" name="testvar" value="<?php echo $testvar;?>"> - Kevin ----- Original Message ----- From: "Michael Eacott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003 2:04 PM Subject: [PHP] Text data truncated after first blank character in form fields > When I have the following in a form: > <?php $testvar = "a b c"; ?> > <input type="text" size=20 name=testvar value=<?php echo $testvar; ?>> > the value shown in the form field is a and not a b c > why? > and how can I get to see the untrucated text, please? > > Mike > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php