Need help on putting variable into <form>
| From: | Hugh Danaher | Date: | Tue, 28 Aug 2001 03:27:30 +0000 |
| Subject: | Need help on putting variable into <form> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64721@lists.php.net to get a copy of this message | ||
Help. I have a page with a form with lots of text boxes which can be filled with data from a text
file. the fopen() and fgets() works, and the text boxes which require numbers have no problems.
But, I have text boxes which require several words of text and they refuse to work right. The first
word makes it in the box, but the rest of the words are lost.
As an example, the data file contains: ABC Company, Inc. in the spot for $comp_name. If I call for
this variable elsewhere outside of a text box, it prints in full, but when used by the following, it
prints only: ABC
print "<input type=text size=30 name=comp_name value=$comp_name>";
There must be something blindingly obvious that I'm missing. Please help.
Thanks, Hugh