Jump to content


Photo

HTTP_REFERER


  • Please log in to reply
1 reply to this topic

#1 mrkgrav

mrkgrav
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 09 March 2006 - 10:06 AM

Hi

Im trying to use HTTP_REFERER to capture an order number from the referel page. This works fine when coming from a .html / .php file but not when coming from .pl files.

The code i have is as follows

$url = $_SERVER['HTTP_REFERER'];
parse_str($url);
$on = $ORDERNUMBER;

Thanks in advance for looking / helping me out.

Mark

#2 txmedic03

txmedic03
  • Members
  • PipPipPip
  • Advanced Member
  • 313 posts
  • LocationCall, TX, USA

Posted 09 March 2006 - 12:46 PM

Instead of trying to figure out the data from HTTP_REFERER how about just passing the data straight to the page? It doesn't matter if you pass it via a form or part of the link, either way the data will get to your page and there are even a couple of ways of doing it through the form.

SEMPER FIDELIS!

I can't stop you from doing something silly, but at least I can help you do it right.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users