I'm trying to get a redirect working - never done one before.
Here's the line from the referring page (index.php3):
<a href="redirect.php?fred=www.fusion.org.au">test link</a>
Here's redirect.php:
<?php
echo $fred;
if ($fred != "") {
# $statement = "UPDATE links SET hits=hits+1 WHERE href=\"$u\"";
# mysql_query($statement);
Header("Location: $fred");
exit;
} else {
echo "Didn't work\n";
# Header("Location: $HTTP_REFERRER");
exit;
}
?>
it just skips straight to the else statement. (
Can anyone see what I'm getting wrong?
Thanks heaps :-)
swadie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110