Hi peeps i really need some help I am trying to get a simple redirection script working. It has to redirect our clients to there web stats pages, so they have to type in their domain and it should then just direct them to their stats but I cant get it working.
<?php
if (isset($_GET["domain"])) {
$url = "http://www." . $_GET["domain"] . "/stats";
header("location: $url");
exit();
}
?>
<form action=<? echo("$PHP_SELF"); ?> method=post enctype="multipart/form-data">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[url]www.[/url]</td>
<td><input type="text" name="domain"></td>
<td>/stats</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
<td> </td>
</tr>
</table>
</form>
As you can see the following code isnt very complicated but it just wont redirect them. Please help before my boss kills me!!