Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder anarchy3200's Avatar
    Join Date
    Mar 2003
    Location
    England
    Posts
    261
    Thanks
    0
    Thanked 1 Time in 1 Post

    Check a user came from a certain page

    can anyone help me write a script to check that a user came from a specific page as i cant think what to search and cant see anything relating to this in about the last 5 pages of threads.

    can anyone help me with this or give me a previous thread (if anyone knows one) that looks at this

    thanks for any help

    mike

  • #2
    New Coder
    Join Date
    May 2003
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What you are looking for is pretty much this to a lesser degree:
    echo checked using http_referer - adding multiple referrers

    However, not all browsers pass a REFERER header and so this method does not work for everyone.
    cpCommerce - Finally a template based open-source e-commerce solution

  • #3
    Regular Coder anarchy3200's Avatar
    Join Date
    Mar 2003
    Location
    England
    Posts
    261
    Thanks
    0
    Thanked 1 Time in 1 Post
    that is what i'm looking for

    but

    because i am using a javascript keyboard shortcut as the link it does not pass on the link of the page it came from therefor making it not work.

    thanks cpradio for your help but does anyone know how i can do this anouther way

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can you give some more info?

    I would assume that you could add the scriptname to the url you redirect to with this javascript, and then you can simply take it from the querystring.
    recent thread : http://www.codingforums.com/showthre...ht=querystring
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #5
    Regular Coder anarchy3200's Avatar
    Join Date
    Mar 2003
    Location
    England
    Posts
    261
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks people for your help

    sorted it in the end as i forgot to take out a piece of code that was stopping me from viewing the page

    mike


  •  

    Posting Permissions

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