MULTIPLE
- http referer's with if statement
I would like to be able to redirect some visitors depending on a if statement...
Basically using the http referer,
if anywhere in the url referer any made words are found ...
$qurl = $_SERVER['HTTP_REFERER'];
if (!strpos($qurl,'yahoo') === false) { \ this works fine with only a single word
##
if (!strpos($qurl,'yahoo, google, msn, help, how, to, add, more, words') === false) {
##
echo "<SCRIPT LANGUAGE=\"javascript\">window.location.href =\"http://www.website.com\"</SCRIPT>";
}
I could make a seperate statement for every single word,
however this could make multiple output of html.