I wrote a simple php file to open different websites using different URLs. PHP code is here.(it's file name is user.php)
<?php
$id = $_GET["name"] ;
if ($id=joe) {
header('Location: http://1.com');
}
if ($id=marry) {
header('Location: http://2.com');
}
if ($id=katty) {
header('Location: http://3.com');
}
?>
I used those 3 methods to call php file.
1.http://xxxxxx.com/user.php?name=joe
2.http://xxxxxx.com/user.php?name=marry
3.http://xxxxxx.com/user.php?name=katty
But php file opens only http://3.com at every time.How to fix this.? how to open different websites for each names.?