Hi,
I have a series of sequential pages using forms (data pulled from recordset) to submit data selected by the user which is gathered at the end to create a query. This all works fine. However, if the user wants to go back a page (using back button) to change selections the browser wants a refresh. Can I stop this from happening?
I know it's to do with the forms but not how to stop it.
Do i need to look at some way of holding these selections in php $variables???????
From: Confused, Frustrated and not sure about PHP.......
PHP/MYSQL using back button forces a refresh of page
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Cann't really send to code - but I've found out what's causing the refresh - I'm using a session variables to grab the users ID, name and login status when they login and to protect the pages from someone not logged in. If I turn the session_start off then the refresh issue is solved but I've lost access to my session variables.
Is there a way to bypass this so that I can keep my security on the pages? Something along the lines of grabbing the userid etc at login and placing it in a "normal" variable in an include file then checking this instead of the session var????
FROM: not quite so confused...........
Is there a way to bypass this so that I can keep my security on the pages? Something along the lines of grabbing the userid etc at login and placing it in a "normal" variable in an include file then checking this instead of the session var????
FROM: not quite so confused...........
-
tylerdurden
- Forum Commoner
- Posts: 66
- Joined: Mon Jul 28, 2003 11:52 am
- Location: Austria
-
tylerdurden
- Forum Commoner
- Posts: 66
- Joined: Mon Jul 28, 2003 11:52 am
- Location: Austria
Just change the form's action parameter from POST to GET and you'll end up with an url like page.php?var1=xyz&var2=zyxmuppet wrote:HHHHHMMMMMMM..........THANKS
So I would need to use a url string to pass all the form variables instead of using a submit action on a button?????
Visit Google and search for something, then check your browser's url bar.
Yes, the sessionID should be stored in a cookie. Or it is be added to the transmitted form data, be it via POST or GETAnd this will still work with a session started?
FROM: showing his ignorance
-
tylerdurden
- Forum Commoner
- Posts: 66
- Joined: Mon Jul 28, 2003 11:52 am
- Location: Austria