please read the script first and then try to answer my question below.
<?
if ($action == "goto") {
?>
<?
if ($page == "home") {
?>
<?PHP
require ('/home/~username/header.php3');
?>
<center>
<a href="index.php3?goto&url=http://www.yahoo.com">click</A>
</center>
<?PHP
require ('/home/~username/footer.php3');
?>
<?
}
?>
// I want to put if ($url == "$something") {
<?
}
?>
I want the script to redirect the user to yahoo or whatever website the a href uses.
I'm going to have more than one destination url though like index.php3?action=goto&url=http://www.excite.com
index.php3?action=goto&url=http://www.yahoo.com
but I don't want to specify in the if {$url part {
It's kinda hard to explain, but I hope its possible to do it.
To make it simple, anything after
.php3?action=goto&url=
will take the visitor to that page when he clicks on the link.