tripwater
04-16-2003, 07:49 PM
Hello I have a site that tracks the users steps through a setup process (I am using PHP on the server side). I am displaying which step they are on via images and some pages get skipped if certain conditions are met and others are included. I have this working fine.
My problem is I know that at sometime the user might make a mistake and click back (BTW I have opened a new window for this and got rid of the browser menu so I have control) so I have a <input type=button onclick= history.back();> So I want to use this button to signal the page it goes back to.
What I need to know is how do I check on the page that I go to from the back button that I got there from that button?
I have a sess_var called "step" that I increment on each page that tells me what step I am on and I would like to be able to say if the back button was pressed then decrement the sess_var "step" so the images will be correct. I hope I have explained myself well. Basically if there is a id= or name= that will give me a flag via post_vars or another method that would give me what I need to trigger my if (back pressed) conditional.
Thank you ahead of time for any help.
My problem is I know that at sometime the user might make a mistake and click back (BTW I have opened a new window for this and got rid of the browser menu so I have control) so I have a <input type=button onclick= history.back();> So I want to use this button to signal the page it goes back to.
What I need to know is how do I check on the page that I go to from the back button that I got there from that button?
I have a sess_var called "step" that I increment on each page that tells me what step I am on and I would like to be able to say if the back button was pressed then decrement the sess_var "step" so the images will be correct. I hope I have explained myself well. Basically if there is a id= or name= that will give me a flag via post_vars or another method that would give me what I need to trigger my if (back pressed) conditional.
Thank you ahead of time for any help.