On Tuesday, November 04, 2003 3:28 PM Jay wrote:

> echo "<form><input type=test size=25 value=$xyz></form>";
[snip]
> The text box shows up with "Hello" NOT "Hello World". How do I get the
> entire variable?

Hi Jay.

You need to wrap the value attribute in quotes, or else it'll truncate
at the first space.

echo "<form><input type=text size=25 value=\"$xyz\"></form>";

Oh, and you'd also misspelled the type value text as test (which
incidentally shows up as a text input anyways, since that's the default.

Cheers,
Pablo

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

Reply via email to