Newbie redirect/variable question

From: Date: Thu, 10 May 2001 11:14:34 +0000
Subject: Newbie redirect/variable question
Groups: php.general 
Request: Send a blank email to php-general+get-52258@lists.php.net to get a copy of this message
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

« previous php.general (#52258) next »