RE: [PHP] Put value directly into form?
| From: | Maxim Maletsky | Date: | Tue, 14 Aug 2001 06:45:39 +0000 |
| Subject: | RE: [PHP] Put value directly into form? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62582@lists.php.net to get a copy of this message | ||
again,
a simple HTML/PHP is enough.
page 1:
form
page 2
the same form and in the <input> fields use value attributes.
i.e: <input type="text" name="title" size=20
value="<?=$title?>">
if the form was not submitted then $title will be empty and will show
nothing, while if Title was submitted it will then reappear on the next page
(which is obviously as same as the one before)
Cheers,
Maxim Maletsky
www.PHPBeginner.com
-----Original Message-----
From: Phil Latio [mailto:phil.latio@f-in-stupid.co.uk]
Sent: Tuesday, August 14, 2001 1:14 PM
To: php-general@lists.php.net
Subject: [PHP] Put value directly into form?
How can I directly put values into a form instead having to create hidden
fields and drag the data from them?
You can see what I mean at:
http://www.yorkshire-search.co.uk/links/add.php3
Would a javascipt function be any use to me?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net