Re: Form question (PHP newbie)
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Form question (PHP newbie)

From: Kasper Johansen <kasper@johansen.tdcadsl.dk>
Date: Sat Jul 16 2005 - 15:18:13 CEST

"Robertico" <Robertico@nospam.notvalid> skrev i en meddelelse
news:6cf27$42d8f928$513b49d4$2682@news.versatel.nl...
> But when an user goes back, the form is empty (alread filled fields are
> empty again).

You could use your "back-link" as a submit to another form, where you save
the posted information.

Something like this:

<form method="post" action="backlink.php">
<input type="hidden" name="yourname"
value="<?=htmlspecialchars($yourname);?>">
<input type="hidden" name="youremail"
value="<?=htmlspecialchars($youremail);?>">
<input type="submit" value="Go back">
</form>

At your first page, you can just add the write the values to your inputs.

-- 
Mvh Kasper Johansen 
Received on Mon Oct 17 21:08:35 2005