RE: [PHP] text input truncated
| From: | Martin Towell | Date: | Tue, 04 Nov 2003 23:30:03 +0000 |
| Subject: | RE: [PHP] text input truncated | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168521@lists.php.net to get a copy of this message | ||
Put quotes around all the values, like:
echo "<form><input type='test' size='25'
value='$xyz'></form>";
Martin
-----Original Message-----
From: Jay Frumkin [mailto:Jay@westernfundinginc.com]
Sent: Wednesday, 5 November 2003 10:28 AM
To: 'php-general@lists.php.net'
Subject: [PHP] text input truncated
Hi all,
I am having a bit of a problem, and was wondering if you could help?
Here's the sample code (very simple)
<?php
$xyz = "Hello World";
echo "<form><input type=test size=25 value=$xyz></form>";
?>
The text box shows up with "Hello" NOT "Hello World". How do I get the
entire variable?
Thanks for your help,
Jay