Calamier Posted November 12, 2005 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 Link to comment Share on other sites More sharing options...
Paim Posted November 12, 2005 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. Link to comment Share on other sites More sharing options...
Skemcin Posted November 12, 2005 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. Link to comment Share on other sites More sharing options...
Calamier Posted November 12, 2005 Author 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 Link to comment Share on other sites More sharing options...
Paim Posted November 13, 2005 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. Link to comment Share on other sites More sharing options...
Calamier Posted November 17, 2005 Author Share Posted November 17, 2005 Just wanted to say thanks for the help guys! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now