Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

How to load a new page on form submission?

Jan 28, 2013 by A007

I want to be able to load a new page when submitting a page and I want to use the previous page’s data in that next page and also in another page. Can anyone please give me any suggestions?

2 Answers

0 votes
Jan 28, 2013 by TopNet
You can  use either cookies or session variables to store the  temporary data. However,  the second page that you post the data to should have a hidden form containing all  the data it received from the previous page, and then it  will pass on to a third page.
0 votes
Jan 28, 2013 by SmartHost
Another option would be to store those needed items in a database, and then you can make the second page query for those values from the database itself.