You are missing semicolons: if($ad==””){header(“location:index.php?kls=1″);}else {if($email==””){header(“location:index.php?kls=2″);}else {if($mesaj==””){header(“location:index.php?kls=3″);}else {if($kiriklink==””){header(“location:index.php?kls=4”);}else {mysql_query(“INSERT INTO bildirim (`ad`,`email`,`acklama`,`kiriklink`,`tarih`) VALUES (‘$ad’,’$email’,’$mesaj’,’$kiriklink’,now())”);header(“location:index.php?kls=5″);}}}} Btw. if you don’t use, then you should start using some IDE like netbeans or phpdesigner, it will show you where error is NEW CODE: if($ad==””){header(“location:index.php?kls=1″);}else {if($email==””){header(“location:index.php?kls=2″);}else {if($mesaj==””){header(“location:index.php?kls=3″);}else {if($kiriklink==””){header(“location:index.php?kls=4”);}else { $query = “INSERT INTO bildirim (`ad`,`email`,`acklama`,`kiriklink`,`tarih`) VALUES (‘$ad’,’$email’,’$mesaj’,’$kiriklink’,now())”; $result = mysql_query($query); … Read more