Forum Moderators: coopster

Message Too Old, No Replies

Form messes up when not exiting browser

Possibly problem with $_GET or Sessions

         

briesm

6:18 pm on Jul 1, 2005 (gmt 0)

10+ Year Member



Hey, so I've got this page that will display links that end with a?firstTime=YES&order=21 to pass along variables. When I click the links, i use a $_GET method to retrieve the order number which is used to connect to a MYSQL database to retrieve all the details. Works beautifully, but if I use back (say if I clicked on the wrong order for example) or if I go back to the main page with the links in the same browser by even typing it in, the?firstTime=YES&order=21 is still in the address yet it doesn't connect to the database and the form comes out blank. Anyone know what the problem could be?

I'm also using sessions to pass along variables when I do stuff to the form.

j4mes

12:00 pm on Jul 3, 2005 (gmt 0)

10+ Year Member



Do you have some relevant code we could take a look at (i.e. that of the form and the part of the code the variables are being passed to)?