RE: [PHP-DB] Inserting querydata as default value in form
| From: | Paul Miller | Date: | Wed, 28 Jan 2004 18:21:28 +0000 |
| Subject: | RE: [PHP-DB] Inserting querydata as default value in form | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32682@lists.php.net to get a copy of this message | ||
Need some quotes
<input name=link TYPE=TEXT cols=40 value=\"".$query_data[4]."\">
Output will look like
<input name=link TYPE=TEXT cols=40 value="Look Here">
Instead of
<input name=link TYPE=TEXT cols=40 value=Look Here>\
Which it probably looks like now.
- Paul
-----Original Message-----
From: Georg Herland [mailto:georgh@online.no]
Sent: Wednesday, January 28, 2004 12:05 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Inserting querydata as default value in form
Hi!
I hav made a simle page to insert update and delete data in MYSQL. I try
to put existing data into a standard form field to make editing
easyer:
<input name=link TYPE=TEXT cols=40 value=$query_data[4]> Problem is when
the text data contains a space ie "Look here". Then only the first word
show. To display both words i have to update the data to "Look_here"
witch isn't really looking good. A good suggestion, anyone?
TIA Georg :-)
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php