<?php
include("connect.php");
if(isset($_POST['submit']))
{
$qonax=@$_POST['qonax'];
$subject=@$_POST['subject'];
$insert="INSERT INTO subject(ID,Qonax,Subject)VALUES('','$qonax','$subject')";
mysqli_query($link,$insert) or die(mysql_error($link));
}
header('location:insert_subject.php');
?>
This error appear when write (if(isset($_POST['submit']){ }
when removed this line code a problem fixed.