click on back button will submit request or it will take page from history

Discussion in 'HTML & Website Design' started by lbrd, Sep 14, 2006.

  1. #1
    click on back button will submit request or it will take page from history.

    i want to check when user click browser back button then it should redirect to another page.

    can this possible.?

    i need urgent reply, thanks in advance.

    lbrd
     
    lbrd, Sep 14, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't understand the question. Clicking the back button will take the user to the previous page. You can't make it do anything different.
     
    mad4, Sep 14, 2006 IP
  3. lbrd

    lbrd Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi Mad,

    thanks for giving me reply, but question is when we clicked on back it will take previous page. but how this previous page will load,

    from history or it will submit a request. becos i am passing some hidden parameter in each request. so do i get in case of back button click.becos if it will load previous page after form submit i will get those hidden parameter value but if it will load this page from history then i will not get those hidden field value.


    thanks for reply
     
    lbrd, Sep 14, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The page shouldn't reload but you can choose how to handle this by using the cache control headers in php. Use private or must-revalidate.
     
    mad4, Sep 14, 2006 IP
  5. lbrd

    lbrd Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi Mad

    i am back again, now i asked one more question in the same post. which is regarding

    can i get browser back button event or something on which i can forward page to my login page.

    need urgent reply,

    lbrd.
     
    lbrd, Sep 14, 2006 IP
  6. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't think so. You can't modify the function of the back button.
     
    mad4, Sep 15, 2006 IP
  7. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7
    issue a token to view a page, and if the same token is used again redirect them?
     
    phree_radical, Sep 16, 2006 IP
  8. 87654321

    87654321 Well-Known Member

    Messages:
    317
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Using Firefox: If its a static page and its in the cache, it just loads from history. But if a form was submitted to the page, the browser will submit request!
     
    87654321, Sep 16, 2006 IP