<? include ("dbs.php"); ?>
<?
$oy = $_POST['Puan'];
$id = $_GET['ID'];
if (!$_COOKIE[$id]) {
$q=mysql_query("Update icerik set oy =oy + '$oy' where baslik_seo = '$id'");
setcookie($id,"True",time()+3600);
$msg = "Puan verdiğiniz için teşekkür ederiz.";
}else{
$msg = "Önceden puan verdiniz.";
}
?><script>alert("<? echo $msg; ?>");
window.location = "<? echo $site; ?>/dosya/<? echo $id; ?>-0.html"
</script>puan.php bu sekilde