Lloyd Bayley wrote:

echo "<input type=text name=question1_text value=$question><br>"; <------------ This returns first word.

Please learn HTML. The "value" should have quotes around it.


echo "<input type=\"text\" name=\"question1_text\" value=\"$question\"><br />";

or, even MORE correct:

echo '<input type="text" name="question1_text" value="' . htmlentities($question) . '"><br />';

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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



Reply via email to