Jump to content

Archived

This topic is now archived and is closed to further replies.

gladiator83x

Submit and Save

Recommended Posts

Hi All,

I was wondering if anyone could help me out with a problem that I have run into. Lets say there are only two things on a page (lets call this page testa.php). The two items are a text box and a submit button. When the person browsing inputs data into the text box and pushes submit, it goes to page (testb.php) and the data inputted in the text box is displayed on this page. I was able to do all of this, however, I want the data that is inputted in the text box to not just be submitted to the next page, but also saved on that page; so if anyone was to go back to testb.php, he/she would be able to see the data that was entered in that text box. How would the form look? I have been reading different things online, looking at code on frontpage, and looking through a book that I purchased, but I cannot find out how to submit & save. If anyone could point me in the right direction or help me start off the code then that would be awesome. Thanks. --Chris

Share this post


Link to post
Share on other sites
Welcome to the phpfreaks!

There are a few different ways to do this. The first and best (IMO) would be to use a database to store your information. The second option would be to use a flat file (text file). If you go to the phpfreaks site (not the forums), you'll find tutorials on how to do both. You can also do a search on the forums that will probably yield you with some good results.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.