Log in

View Full Version : How to get back $_GET value when page reversed?



devil_vin
09-27-2007, 04:22 AM
Hi..guys! I have 3 php pages now.I send a value by using $_GET from first page to second and third page.I have a Back button in second page and third page.However when reversed back from third to second page,the value is gone,I have to go back to first page to send it again.How can I stick the value at there when page reversed?Thanks...

insanemonkey
09-27-2007, 04:26 AM
why not use a javascript back button???

<a href="#" onClick="history.go(-1)">Back</a>

devil_vin
09-27-2007, 04:29 AM
I am using button with javascript,when button is clicked then onclick="window.location='pages2.php'", but why $_GET value is gone?

devil_vin
09-27-2007, 04:34 AM
why not use a javascript back button???

<a href="#" onClick="history.go(-1)">Back</a>

Problem resolved.Thanks!Instead pointing to exact URL,I should trigger the previous page in the system history.

insanemonkey
09-27-2007, 04:36 AM
hhaha there you go!!!