Results 1 to 3 of 3

Thread: PHP referrer problem

  1. #1
    Join Date
    Jul 2006

    PHP referrer problem


    im using this string to get the referrer to my page


    i use it on an application form to see whats the referrer of the applicants and i get it on my mail address along with all the info sent by the applicants. However, in some cases the referrer appears as the same application form page! example: my application form is domain.com/form.php and referrer shows as domain.com/form.php too. Is that possible? in which cases can this happen?

    Thank you.

  2. #2
    Join Date
    Sep 2010
    In some cases or all cases?

    $_SERVER HTTP Referer should show where the recent user just came from, but

    - In cases where someone accesses your page directly.

    REFRESHDATA has to repost the information if someone has hit refresh on a page.

    - In cases where the page is posting to itself.

  3. #3
    Join Date
    Jul 2006
    Thanks, but if someone access directly (by typing the URL on the address bar) then nothing should appear. I have tested it and nothing ever appears as referrer in those cases. Is that the only case it happens?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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