Hi. I am working on a script that allows you to choose what page is shown if you have a different referer. What i want them to be able to do though is have 2 different site options. I have tried to write this script myself but it wouldn't work! I don't want them to only be redirected to the correctpage is the are reffered from , for example, www.site.com; i want them to be redirected if they are sent from www.site.com/index.html, www.site.com/page.html etc; basically any page on their site without having to manually code it themselves. Does anyone have any ideas?
The code i did use was;
$site = "http://www.site.com";
$referer = "$ENV{HTTP_REFERER}";
if ($referer = $oksite) { &ok } else { &bad }
I have tried many other ways (such as putting an =~ instead of just an = sign, but that didn't work!)
Any ideas would be much appreciated
Yours
A.J.Newby
webmaster@ace-installer.com
The code i did use was;
$site = "http://www.site.com";
$referer = "$ENV{HTTP_REFERER}";
if ($referer = $oksite) { &ok } else { &bad }
I have tried many other ways (such as putting an =~ instead of just an = sign, but that didn't work!)
Any ideas would be much appreciated
Yours
A.J.Newby
webmaster@ace-installer.com