Page 1 of 1

to get previously filled data when press back button

Posted: Fri Mar 17, 2006 10:28 am
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

Posted: Fri Mar 17, 2006 10:32 am
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.

Posted: Fri Mar 17, 2006 10:51 am
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

Posted: Fri Mar 17, 2006 10:54 am
by feyd
as a session variable is recommended

Posted: Fri Mar 17, 2006 11:33 am
by tanveer
thanks a lot.

-t@nveer