hello,
its an example:
http://www.phpcode.hu/example.txt
add.php: it is a form to collect the info from the user,
added.php is the insert program.
in added.php i store the posted data in $_SESSION["content_filedname"] , and there is a check for required values. And that's name stored a session variable, to make the missed form elements into red background.
in added.php you can write a session delete, when a succesfully inserted happened.
hello,
jjozsi
drag0n;10891133 wrote:Hi:
I was wondering if I could get some input/opinions about what would be the best way to return a user to a form on another page because they entered in wrong info or left fields blank?
I am already using Jscript to "precheck" the form before actually submitting it; but people could cheat that or if there are other reasons I need them to redo the form then what can I do?
I am currenting using the history(-1) function basically same as the back button and storing the values in sessions to keep them on the form.
Any other way to do this better and more efficently? Because in some areas I am using ajax pop-out model boxes to display forms and whatnot; if I do a back button then the whole page goes back and everything is lost.
What are you guys currently using to do this?
Thanks