Re: RE: Prefilled forms (solved)
| From: | Eugene Lee | Date: | Thu, 20 Nov 2003 10:14:00 +0000 |
| Subject: | Re: RE: Prefilled forms (solved) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170398@lists.php.net to get a copy of this message | ||
On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote:
:
: Scuse me, if I write some totally dumb thing.
: I am quite new to PHP and programming, and maybe I'm not understanding
: the question, but:
:
: What if you assign a value to every form field like this:
:
: <input type="text" name="something" value="<?php echo $something;
?>">
:
: or - safer, with register_globals off:
:
: <input type="text" name="something" value="<?php echo
$_POST['something'];
: ?>">
Actually, you can do one more thing:
<input type="text" name="something" value="<?php echo
htmlentities($_POST['something']); ?>">
: Again, please apologize, if i'm stupid.
Ummm, what is the question? :-)