sanfly Posted January 12, 2007 Share Posted January 12, 2007 HiIm sure the code I have used to work fine for this, but it doesnt seem to anymore and It was so long ago I cant remember the reasoning behind the code I originally added.Lets say Im validating a form with php, the form submits to the check page, an error is noted, and I have a back button for the user to press to go back and fix the error.How do I make it so that the information they entered is still in the form when they press back?Cheers Link to comment https://forums.phpfreaks.com/topic/33959-form-processing/ Share on other sites More sharing options...
pierrick Posted January 12, 2007 Share Posted January 12, 2007 Hi,The 'back' feature can be the submit button/link of a form full of hidden inputs which themselfves hold the values entered by the user. This little form calls the original data entry form and repopulates the entry fields.Makes sense? Link to comment https://forums.phpfreaks.com/topic/33959-form-processing/#findComment-159469 Share on other sites More sharing options...
play_ Posted January 12, 2007 Share Posted January 12, 2007 Say you you have this input field.<input type="text" name="username" value="<? @echo $_POST['username'] ?>" />edit::Not sure if this would work on your case.This works if instead of a page with a back button, the form is redisplayed again. Link to comment https://forums.phpfreaks.com/topic/33959-form-processing/#findComment-159475 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.