RE: [PHP-DB] Inserting querydata as default value in form
| From: | Ford, Mike [LSS] | Date: | Wed, 28 Jan 2004 18:17:23 +0000 |
| Subject: | RE: [PHP-DB] Inserting querydata as default value in form | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32683@lists.php.net to get a copy of this message | ||
On 28 January 2004 18:05, Georg Herland wrote:
> 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.
Oh dear, it's HTML 101 time again.
Quote your attribute values!
<input name="link" TYPE="TEXT" cols="40" value="<?php echo
$query_data[4]
?>">
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211