'; echo 'alert("Email id already registered.Put unique Email id.")'; echo ''; } else{ if($doc_pswd==$doc_repswd) { $sql="INSERT INTO doc_registration (doc_name,doc_address,doc_dob,doc_qualification,doc_dept,doc_phn,doc_mail,doc_pswd,doc_gender,day1,timeslot1,day2,timeslot2,day3,timeslot3) VALUES ('$doc_name','$doc_address','$doc_dob','$doc_qualification','$doc_dept','$doc_phn','$doc_mail', '$doc_pswd','$doc_gender','$doc_day1','$doc_timeslot1','$doc_day2','$doc_timeslot2','$doc_day3','$doc_timeslot3')" ; $result = mysqli_query($connection,$sql); if($result) { session_start(); $_SESSION['docmail'] = $doc_mail; header("Location:doctorhome.php"); } else{ echo ''; } } else{ echo ''; } } } ?>