$jobid=$_GET['jobid'];
if ($loggedin)
{
$job_sql="SELECT job.*, members.* from job inner join members WHERE job.jobid = '$jobid'";
if(isset($_POST["submit"]))
{
$sql="INSERT INTO applied(user,jobid) VALUES('$user','$jobid')";
$result=mysql_query($sql);
if($result)
{
header('Location: submit.php');
} else
{
echo "Failure!";
}
}
};
'Members' and 'job' are 2 tables and there is a form which have submit button whose form action is the same page. so when clicked on submit it should search for post submit and submit the form, But when Clicked on submit, I'm getting an error
(Notice: Undefined index) in line number 12 ($jobid=$_GET['jobid'];)