Forum Moderators: coopster
Now, if the surfer lands on the counter page - how do I move him on to the final page/link? Should I use 302/301 - or something completely different?
Any help appreciated,
nerd.
#grab affiliate ID
#insert stats into database, file, etc based on ID
#
#redirect to corresponding page
header("Location: $url");
$sql = "UPDATE TABLE SET clicks=clicks+1 where url='$url'";
if (mysql_query($sql, $dblink))
{
header("Location: [$url");...]
}
else
{
}
?>
<head>
<title>Go</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">
<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
</head>
Is it the correct method?
wheelie34: Is it the correct method?
thanks guys. So using "header("Location: [$url");"...] results in a 302 - and that is the correct way to do it?