Sands |
03-20-2010 01:43 AM |
Quote:
Originally Posted by moeloubani
(Post 16962401)
Why isn't this working? I'm linking to ?m=a and its going to the blank one every time
Code:
<?php
if ($m == "b") {$link = "http://siteb.com";}
if ($m == "c") {$link = "http://siteb.com";}
if ($m == "a") {$link = "http://siteb.com";}
if ($m == "") {$link = "http://siteb.com";}
header("Location: $link");
exit();
?>
|
Is there something in there that's grabbing the url variable that's designating the link, but you've left it out of the snippet you've pasted? Like:
Or something to that effect. If that's not there, it should be as that's what will bring the "a" value into that snippet.
|