Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POSTDATA

Status
Not open for further replies.

OldSmelly

Programmer
Nov 22, 2001
70
NL
Hi All,

I have a system where the user can query a database, this wil show up on the screen and the user then can click on a "record" (wich is actualy a link made up) and the system then transfers to a detail page with more information on the record. But when the user comes back to the screen with the records I get "Page needs to resend the information"...

Anyone got a idea how tho avoid this ?

Thanks in advance

Hans Rumpff
 
pressing the back button is handled by the browser and the dialog box is created by the browser.

two roots:

1. replace your post based calls with get. This can make your urls look a bit mad, but you can either live with this or fix it with mod_rewrite.

2. create an html based back-button and create the navigation with javascript.
 
Do you use SESSION?
If so in similar case I create a "dummy.php"
that acts only as a Session start-up/carrier:
Your initial script goes there, starts a session then using a header is redirected to its real targeted file and so on. (To use an header anywhere in the script remember to have OB turned on in your php.ini)
But since your user never “really” uses that script the session exists for the duration of its visit.
As such your user may go back and forth even using back browser
because the session persistence exists.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top