Re: A rather strange problem.
| From: | Tom Rogers | Date: | Thu, 23 Jan 2003 16:46:42 +0000 |
| Subject: | Re: A rather strange problem. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132861@lists.php.net to get a copy of this message | ||
Hi,
Thursday, January 23, 2003, 10:47:56 PM, you wrote:
DLM> hello friends,
DLM> I run some queries and output the database fields in a form with text boxes for the purpose
DLM> of editing by the administrator. My problem is that if my field value is of 2 words or more, my
DLM> output
DLM> text box shows only the first work. e.g. if the field is "Jane Enterprises", the
DLM> textbox shows only "jane". My code is below. Can someone please tell me what it is I am
DLM> doing wrong?
DLM> Quote :
DLM> <?php
DLM> while($row=mysql_fetch_array($result)){
DLM> print " <form name=\"form1\" method=\"post\"
DLM> action=\"update.php\">";
DLM> print " <input name=\"OrgName\" type=\"text\"
DLM> id=\"OrgName\" size=\"30\" value=$row[OrgName]>";
DLM> print " </form>";
DLM> }
DLM> ?>
DLM> Unquote
DLM> Thanks
DLM> denis
put the value in quotes
value=\"$row[OrgName]\">
--
regards,
Tom