I am trying to redirect based on the URL string. I cant seem to get this working. Here is my code.
<?php
$pr = $_GET['r'];
if ($pr=="yes") {
header("Location: addproject.php");
} else {
header("Location: clients.php");
}
?>
Of course 'r' is my querystring name.
When I run this, it always redirects to the clients.php page. I am confused!
Any help would be appreciated.
Clark