to get previously filled data when press back button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tanveer
Forum Newbie
Posts: 9
Joined: Sat Mar 27, 2004 11:07 am

to get previously filled data when press back button

Post by tanveer »

Hello all,
I am new to php and desinging an application form of total 8 pages. Now, the problem is when I click the back button from page2 to get back at page1 my filled up is lost. Is there any way to have the previously filled data when I click back ?

-t@nveer
Last edited by tanveer on Fri Mar 17, 2006 10:33 am, edited 3 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That "functionality" is normally controlled by the browser's caching systems, which cannot be controlled by you. You can ask the browser to not cache the page, and use fields you've stored in say a session to repopulate the page's form, but some fields cannot be written to (file fields) in the page.
tanveer
Forum Newbie
Posts: 9
Joined: Sat Mar 27, 2004 11:07 am

Post by tanveer »

thank you for your reply.
One more thing, on which, I need help is in the backend I am using SQL server of around 20 tables to hold that 8 pages data. So when user clicks NEXT button on the 1st page that data is entering in 3 tables(say A,B,C) and on 2nd page when user clicks NEXT that data is getting stored in another 4/5 tables(say, D....G,H) and so on until page8.
As table 'A's primary key is used as FK in table D/F which is in another page so how to get that primary key value in table 'D'. Should I pass it as session variable from 1st page to last page of form? Or is there any other way around?

Hope I made myself clear.
thanks in advance.

-t@nveer
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

as a session variable is recommended
tanveer
Forum Newbie
Posts: 9
Joined: Sat Mar 27, 2004 11:07 am

Post by tanveer »

thanks a lot.

-t@nveer
Post Reply