Put quotes around all the values, like:

echo "<form><input type='test' size='25' value='$xyz'></form>";

Martin

-----Original Message-----
From: Jay Frumkin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 5 November 2003 10:28 AM
To: '[EMAIL PROTECTED]'
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to