Forum Moderators: coopster

Message Too Old, No Replies

Using a referal url as a variable.

Is this possible

         

mack

2:28 am on Oct 29, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I am working on a script where the referal url is fairly importaint to the script output.

How can I convert the referal url to a variable such as $referal.

Thank you in advance.

Mack.

shrewsbury matt

2:41 am on Oct 29, 2003 (gmt 0)

10+ Year Member



If you just need the referral URL try

$refferal = $HTTP_REFERER;

If you want to get variables from the referer, look at the user comments at the bottom of this page of the php manual.

[php.net...]