Posted July 2 '09 at 10:03 AM
Posts: 12
Hi all,
I use some self written PHP scripts on my website, however I have just realised that if a user then clicks the back button from their browser, they go back to the tracking script, which forwards them straight back to where they came from!
Is there a way around this?
Simple example at
http://www.pocketpcsoft.net, click the large FREEWARE in the tag cloud, and it calls
http://www.pocketpcsoft.net/php/free....php?type=free which then redirects the user to
http://www.pocketpcsoft.net/php/freeware.php
If the user then clicks BACK they end up at
http://www.pocketpcsoft.net/php/free....php?type=free which then redirects the user once again to
http://www.pocketpcsoft.net/php/freeware.php
the relevant snippet of freetrackcloud.php is as follows
$type = $_GET['type'];
$result=mysql_query( "UPDATE clickcloud SET count=count+1 WHERE name='$type'", $db);
mysql_close($db);
?>
<html>
<head>
<title><?=$type?></title>
</head>
<body>
<script>window.location.href="/php/freeware.php"</script>
</body>
</html>