Web page Data Preservation Method--PHP development
Little brother is doing a website, using PHP development;
Divided into 3 pages, each page will let users fill in some of the content;
Need to set up a database to save the user's settings on page 3rd, then how to get 1, 2 pages of data on page 3rd;
You need to consider when the 33rd step has not yet established the database,
The user returns to the previous 1.2 page to modify again, this situation needs to show the user just fill in some of the data, can not let the user return after nothing, and have to re-fill;
What happens if the user is in a lot of situations? (assuming that 10,000 users are working together)
At present I think of the 1, 2 page user set up after the database, on the 3rd page is read out, but this feeling is rather strange.
The first time to do the website, ask the big God pointing. PHP Website Development Database
Share to:
------Solution--------------------
This little brother, I think the first 3 steps can be written in a cookie, or can be written into the session. Finally, save it to the database.
------Solution--------------------
It can also be made into fake three pages. Three Div is actually switching back and forth. Click Next page to hide the first Div, the second display, and so on. So the information you entered before is definitely in the
------Solution--------------------
1, 3 floor of the method are very good
------Solution--------------------
Or you can also use local stroage
Specifically, you can see
JavaScript Local storage practices (HTML5 localstorage and IE's UserData)
------Solution--------------------
Reference:
You can also make fake three pages. Actually, three Div is switching back and forth. Click Next page to hide the first div from the second display, and so on, and so on. So the information you entered is definitely in the
Why do not need 1 pages,, a page divided into 3 parts, the contents of the random change
------Solution--------------------
Session server pressure is high when tens of thousands of users are using the same time
The general approach is to
The first page fills in input and then posts to the second page
The second page fills in input plus the first page submits the value as
The third page fills in input plus the first 2 pages submit values such as
And what to do with it.
------Solution--------------------
Support 3 Floor, in addition, if need to initialize, can be used in conjunction with Ajax, the effect of the leverage ~ ~ ~
------Solution--------------------
References: