i have created a form using php. when the user submits the form (for the first time) the form is 'parsed' and then displayed in a non-form page. the user has the chance to edit any errors or just send as-is. if the user has an error i tried using:
<input type="button" value="Edit" onclick=
"history.go(-1)">
this obviously takes the user back to the initial form page, however the form is reset. how do i 'save' or reload the form for the user to edit? thanks!
Going back to edit a form
Moderator: General Moderators
Code: Select all
<?php
header("Cache-control: private");
?>Other thoughts might be to;
Add the form's information in hidden-<input>'s aswell as in the non-form part of page.
Add another submitbutton with topic "Change" that resends the info from the hidden fields.
Once that is done, you have new info you can put back into the value="" areas in your form...
Geez, sounded messy...
- Seth_[php.pl]
- Forum Commoner
- Posts: 30
- Joined: Sun Aug 10, 2003 5:25 am
- Location: Warsaw / Poland