Msg#: 3207050 posted 5:58 pm on Jan 3, 2007 (gmt 0)
I'm hoping someone here can help me because I am at a complete loss how to get this "idea" of mine to work. I've created a form that takes inputs from users and inserts them into a MYSQL database. So far, I've been able to get the form to connect to the MYSQL db via PHP but ran into a problem with users using their browser's back button.
I want there to be a "confirmation page" so that users can double check the responses before submitting them to the database. This would combat duplicate entries caused by misspellings and user error. Anyone have any ideas how to do this? Below is example code from my files:
Msg#: 3207050 posted 6:17 pm on Jan 3, 2007 (gmt 0)
Thanks for the response, I'm completely new to this so bear with me. How would I set up these "hidden" fields for the confirmation page and how do I like that page to the DB? What I had tried earlier was calling an PHP page called "output.php" from the "input.php" file but it didn't work. Again, thanks a million for your help.
So, are you saying I would put <input type="hidden" name="dept" value="<? echo $_POST['dept']?>"> into the input.php file? Would the input.php file now be:
Msg#: 3207050 posted 9:26 pm on Jan 6, 2007 (gmt 0)
When I process my forms, all my html is inserted beneath the PHP code. That I call my "thank you" page (e.g. thankyou.php). I carry my variables echo $name (no hidden fields) over to the next page to personlaize my thank you page.
Once the PHP is processed (validated) then the html will pick up. Html will not show until PHP is processed.