Out links trough a file
Posted: Thu Jan 08, 2004 10:10 am
If for example I call link.php like this:
http://localhost/link.php?page=yahoo
how should link.php look?
This is an ideea of mine but my PHP knowledge is very limited:
http://localhost/link.php?page=yahoo
how should link.php look?
This is an ideea of mine but my PHP knowledge is very limited:
Code: Select all
<?php
if (!empty($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = "$null";
}
if ($page == "yahoo") {
header("Location:http://www.yahoo.com/");
}
?>