Calamier 0 Posted November 12, 2005 Report Share Posted November 12, 2005 Hey guys, i was wondering if you new a way to save form input data from page to page and then have it all submit at once. For example - I am building a site that has 4 steps, all requiring input to go to the nextstep 1 - pick something then i want them to click on "proceed to step 2" then after that etc etc step 4 comes, and it submits all the info.All help is appreciated-Calamier Quote Link to post Share on other sites
Paim 0 Posted November 12, 2005 Report Share Posted November 12, 2005 You could try putting them into session variables, calling session_start() on each consecutive page, and at the end, putting all the session variables into the query.Of course, it needs PHP. Quote Link to post Share on other sites
Skemcin 13 Posted November 12, 2005 Report Share Posted November 12, 2005 how ever you decide to do this (session variables, arrays, temporary database, hidden fields) be VERY careful that you don't make you form open to hacks. If you get seomthing like a price on the first page, then carry it from page to page using a hidden field, then there is nothing to stop me from creating my own form at home and changing the price to what I want to pay adn then submitting it to your last page. Whatever you do, make sure you validate all the information at the very end before commiting to it - NEVER trust that the information being submitted from one page to the next is valid. Quote Link to post Share on other sites
Calamier 0 Posted November 12, 2005 Author Report Share Posted November 12, 2005 Paim, Could you elaborate on that a bit, im still a little bit fuzzy, or point me to a page that tells how sessions workSkemcin thanks for your concern, nothing is actually being bought on the page, all of the information is simply gathered up into a form and submitted via email to a customer service representative, and then they set up a meeting to discuss it.Thanks a ton guys!-Calamier Quote Link to post Share on other sites
Paim 0 Posted November 13, 2005 Report Share Posted November 13, 2005 http://www.spoono.com/php/tutorials/tutorial.php?id=36http://codewalkers.com/tutorials/32/1.htmlhttp://www.phpfreaks.com/tutorials/41/0.phpI found those on the net. PHP Sessions start getting into the more advanced side of PHP, so don't get upset if you don't understand it straight away, I didn't. Any more help just ask. Quote Link to post Share on other sites
Calamier 0 Posted November 17, 2005 Author Report Share Posted November 17, 2005 Just wanted to say thanks for the help guys! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.