Results 1 to 5 of 5

Thread: How to get back $_GET value when page reversed?

  1. #1
    Join Date
    Aug 2007
    Location
    Malaysia
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to get back $_GET value when page reversed?

    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...

  2. #2
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    why not use a javascript back button???

    <a href="#" onClick="history.go(-1)">Back</a>
    Hey new design new look, goto xudas for personal webdsign help.. (:

  3. #3
    Join Date
    Aug 2007
    Location
    Malaysia
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am using button with javascript,when button is clicked then onclick="window.location='pages2.php'", but why $_GET value is gone?

  4. #4
    Join Date
    Aug 2007
    Location
    Malaysia
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by insanemonkey View Post
    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.

  5. #5
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    hhaha there you go!!!
    Hey new design new look, goto xudas for personal webdsign help.. (:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •