Results 1 to 4 of 4

Thread: HTTP_REFERER Questions

  1. #1
    Join Date
    Feb 2008
    Posts
    90
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default HTTP_REFERER Questions

    I have a script that puts many variables into the URL, these variables are then called on another page to perform some mysql querys. For example:
    My first page is www.someurl.com/id=$id&postID=$postID.
    My second page uses those variables to delete an entry from my database. and echos "Row Deleted. Click here to go back.
    I want to make a link on the 2nd page that redirects the user back to the first page's URL.
    Maying im making this more complicated then it needs to be.
    Thanks for your help.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, quite the opposite. It actually needs to be slightly more complicated, because the REFERER is not always sent reliably. You'll need to pass the first page's URL in the POST request you're using to delete the row.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2008
    Posts
    90
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default

    Are there other ways to achieve the same goal? Something that is more reliable?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by myself
    You'll need to pass the first page's URL in the POST request you're using to delete the row.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •