Some informations are missing:
1. Open the admission form again, 2. Refresh the form. 3. Fill it up with all mandatory information. "; exit(); } $admission["STUDENT_NAME"] = $_POST["STUDENT_NAME"]; $admission["FATHER_NAME"] = $_POST["FATHER_NAME"]; $admission["MOTHER_NAME"] = $_POST["MOTHER_NAME"]; $admission["GUARDIAN_NAME"] = $_POST["GUARDIAN_NAME"]; $admission["HUSBAND_NAME"] = $_POST["HUSBAND_NAME"]; $admission["GENDER"] = $_POST["GENDER"]; $admission["DOB"] = $_POST["DOBD"]."/".$_POST["DOBM"]."/".$_POST["DOBY"]; $admission["RELIGION"] = $_POST["RELIGION"]; $admission["NATIONALITY"] = $_POST["NATIONALITY"]; $admission["RESERVATION_CATEGORY"] = $_POST["RESERVATION_CATEGORY"]; $admission["PHYSICAL_DISABLITY"] = $_POST["PHYSICAL_DISABLITY"]; $admission["BLOOD_GROUP"] = $_POST["BLOOD_GROUP"]; $admission["ADDRESS"] = $_POST["ADDRESS"]; $admission["MOBILE"] = $_POST["MOBILE"]; $admission["EMAIL"] = $_POST["EMAIL"]; $admission["GUARDIAN_OCCUPATION"] = $_POST["GUARDIAN_OCCUPATION"]; $admission["MONTHLY_INCOME"] = $_POST["MONTHLY_INCOME"]; $admission["HS_INSTITUTION"] = $_POST["HS_INSTITUTION"]; $admission["HS_BOARD"] = $_POST["HS_BOARD"]; $admission["HS_PASS_YEAR"] = $_POST["HS_PASS_YEAR"]; $admission["HS_EXAM_NAME"] = $_POST["HS_EXAM_NAME"]; $admission["HS_ROLL"] = $_POST["HS_ROLL"]; $admission["HS_NO"] = $_POST["HS_NO"]; $admission["HS_REGISTRATION_NUMBER"] = $_POST["HS_REGISTRATION_NUMBER"]; $admission["HS_TOTAL_MARKS"] = $_POST["HS_TOTAL_MARKS"]; $admission["HS_DIVISION"] = $_POST["HS_DIVISION"]; $admission["GEN_HONOURS"] = $_POST["GEN_HONOURS"]; $admission["HS_SUB_NO1"] = $_POST["HS_SUB_NO1"]; $admission["HS_SUB_NM1"] = $_POST["HS_SUB_NM1"]; $admission["HS_SUB_NO2"] = $_POST["HS_SUB_NO2"]; $admission["HS_SUB_NM2"] = $_POST["HS_SUB_NM2"]; $admission["HS_SUB_NO3"] = $_POST["HS_SUB_NO3"]; $admission["HS_SUB_NM3"] = $_POST["HS_SUB_NM3"]; $admission["HS_SUB_NO4"] = $_POST["HS_SUB_NO4"]; $admission["HS_SUB_NM4"] = $_POST["HS_SUB_NM4"]; $admission["HS_SUB_NO5"] = $_POST["HS_SUB_NO5"]; $admission["HS_SUB_NM5"] = $_POST["HS_SUB_NM5"]; $admission["HS_SUB_AGG"] = $_POST["HS_SUB_NO1"]+$_POST["HS_SUB_NO2"]+$_POST["HS_SUB_NO3"]+$_POST["HS_SUB_NO4"]+$_POST["HS_SUB_NO5"]; $admission["sub_1"] = $_POST["ssub_1"]; $admission["sub_2"] = $_POST["ssub_2"]; $admission["sub_3"] = $_POST["ssub_3"]; $admission["TIME"] = time(); $conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']); if($conn->connect_error) die("Connection failed: " . $conn->connect_error); else{ mysqli_set_charset($conn,"utf8"); if ($_POST["GEN_HONOURS"] == 'stream6' || $_POST["GEN_HONOURS"] == 'stream8'){ $fp='g'; }else $fp='h'; $stmt = $conn->prepare("INSERT INTO ".$GLOBALS['table2']." (`STUDENT_NAME`,`FATHER_NAME`, `MOTHER_NAME`, `GUARDIAN_NAME`, `HUSBAND_NAME`, `GENDER`, `DOB`, `RELIGION`, `NATIONALITY`, `RESERVATION_CATEGORY`, `PHYSICAL_DISABLITY`, `BLOOD_GROUP`, `ADDRESS`, `MOBILE`, `EMAIL`, `GUARDIAN_OCCUPATION`, `MONTHLY_INCOME`, `HS_INSTITUTION`, `HS_BOARD`, `HS_PASS_YEAR`, `HS_EXAM_NAME`, `HS_ROLL`, `HS_NO`, `HS_REGISTRATION_NUMBER`, `HS_TOTAL_MARKS`, `HS_DIVISION`, `GEN_HONOURS`, `HS_SUB_NO1`, `HS_SUB_NM1`, `HS_SUB_NO2`, `HS_SUB_NM2`, `HS_SUB_NO3`, `HS_SUB_NM3`, `HS_SUB_NO4`, `HS_SUB_NM4`, `HS_SUB_NO5`, `HS_SUB_NM5`, `HS_SUB_AGG`, `sub_1`, `sub_2`, `sub_3`, `TIME`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("ssssssssssssssssssssssssssssssssssssssssss", $admission["STUDENT_NAME"],$admission["FATHER_NAME"],$admission["MOTHER_NAME"],$admission["GUARDIAN_NAME"],$admission["HUSBAND_NAME"],$admission["GENDER"],$admission["DOB"],$admission["RELIGION"],$admission["NATIONALITY"],$admission["RESERVATION_CATEGORY"],$admission["PHYSICAL_DISABLITY"],$admission["BLOOD_GROUP"],$admission["ADDRESS"],$admission["MOBILE"],$admission["EMAIL"],$admission["GUARDIAN_OCCUPATION"],$admission["MONTHLY_INCOME"],$admission["HS_INSTITUTION"],$admission["HS_BOARD"],$admission["HS_PASS_YEAR"],$admission["HS_EXAM_NAME"],$admission["HS_ROLL"],$admission["HS_NO"],$admission["HS_REGISTRATION_NUMBER"],$admission["HS_TOTAL_MARKS"],$admission["HS_DIVISION"],$admission["GEN_HONOURS"],$admission["HS_SUB_NO1"],$admission["HS_SUB_NM1"],$admission["HS_SUB_NO2"],$admission["HS_SUB_NM2"],$admission["HS_SUB_NO3"],$admission["HS_SUB_NM3"],$admission["HS_SUB_NO4"],$admission["HS_SUB_NM4"],$admission["HS_SUB_NO5"],$admission["HS_SUB_NM5"],$admission["HS_SUB_AGG"],$admission["sub_1"],$admission["sub_2"],$admission["sub_3"],$admission["TIME"]); if($stmt->execute()){ $echoinfo01= 'Application Form Successfully Submitted !
Details is being mailed, check your inbox/update tab/junk
Now proceed to print

Form

Chalan

'; } else{ echo "Error:
Contact Web admin " .mysqli_error($conn); exit(); }$tsid=mysqli_insert_id($conn); $stmt->close(); }$conn->close(); $okk=0; $target_dir = getcwd()."/CONTENT/ROOT_URI/Admission/uploads/photo/"; $target_file = $target_dir . $tsid.'.jpg'; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["Photo"]["tmp_name"]); if($check !== false) { echo "File is an image - " . $check["mime"] . "."; $uploadOk = 1; } else { echo "Photo -File is not an image.
"; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "Photo -File , file already exists, contact web admin
"; $uploadOk = 0; } // Check file size if ( $_FILES["Photo"]["size"] >150000) { echo "Photo -File maintain file size.
"; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" ) { echo "Photo -File , only JPG files are allowed.
"; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Photo -File , your file was not uploaded.
"; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["Photo"]["tmp_name"], $target_file)) { echo "

The Photo -File ". basename( $_FILES["Photo"]["name"])." has been uploaded.


"; $okk=$okk+1; } else { echo "

Photo -File , there was an error uploading your file.


"; } } $target_dir = getcwd()."/CONTENT/ROOT_URI/Admission/uploads/sign/"; $target_file = $target_dir . $tsid.'.jpg'; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["sign"]["tmp_name"]); if($check !== false) { echo "

File is an image - " . $check["mime"] . ".


"; $uploadOk = 1; } else { echo "

Sign - File is not an image.


"; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "

Sign - , file already exists, contact web admin


"; $uploadOk = 0; } // Check file size if ( $_FILES["sign"]["size"] >150000) { echo "

Sign - maintain file size.


"; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" ) { echo "

Sign - , only JPG files are allowed.


"; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "

Sign - , your file was not uploaded.


"; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["sign"]["tmp_name"], $target_file)) { echo "

Sign - file ". basename( $_FILES["sign"]["name"]). " has been uploaded.


"; $okk=$okk+1; } else { echo "

Sign - , there was an error uploading your file.


"; } } $target_dir = getcwd()."/CONTENT/ROOT_URI/Admission/uploads/admit/"; $target_file = $target_dir .$tsid.'.jpg'; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["admit"]["tmp_name"]); if($check !== false) { echo "

File is an image - " . $check["mime"] . ".


"; $uploadOk = 1; } else { echo "

Admit -File is not an image.


"; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "

Admit -, file already exists, contact web admin


"; $uploadOk = 0; } // Check file size if ( $_FILES["admit"]["size"] >150000) { echo "

Admit File - maintain file size.


"; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" ) { echo "

Admit -, only JPG files are allowed.


"; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "

Admit -, your file was not uploaded.


"; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["admit"]["tmp_name"], $target_file)) { echo "

Admit file ". basename( $_FILES["admit"]["name"]). " has been uploaded.


"; $okk=$okk+1; } else { echo "

Admit -, there was an error uploading your file.


"; } } $target_dir = getcwd()."/CONTENT/ROOT_URI/Admission/uploads/mark/"; $target_file = $target_dir . $tsid.'.jpg'; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["mark"]["tmp_name"]); if($check !== false) { echo "

File is an image - " . $check["mime"] . ".


"; $uploadOk = 1; } else { echo "

Marksheet -File is not an image.


"; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "

Marksheet file already exists, contact web admin


"; $uploadOk = 0; } // Check file size if ( $_FILES["mark"]["size"] >150000) { echo "

Marksheet -File maintain file size.


"; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" ) { echo "

Marksheet -File , only JPG files are allowed.


"; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "

Marksheet -File, your file was not uploaded.


"; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["mark"]["tmp_name"], $target_file)) { echo "

Marksheet file ". basename( $_FILES["mark"]["name"]). " has been uploaded.


"; $okk=$okk+1; } else { echo "

Marksheet -File, there was an error uploading your file.


"; } } if($_POST["RESERVATION_CATEGORY"] != "GENERAL"){ $target_dir = getcwd()."/CONTENT/ROOT_URI/Admission/uploads/cast/"; $target_file = $target_dir . $tsid.'.jpg'; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["cast"]["tmp_name"]); if($check !== false) { echo "

File is an image - " . $check["mime"] . ".


"; $uploadOk = 1; } else { echo "

Cast Certificate -File is not an image.


"; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "

Cast Certificate file already exists, contact web admin


"; $uploadOk = 0; } // Check file size if ( $_FILES["cast"]["size"] >150000) { echo "

Cast Certificate -File maintain file size.


"; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" ) { echo "

Cast Certificate -File , only JPG files are allowed.


"; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "

Cast Certificate -File, your file was not uploaded.


"; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["cast"]["tmp_name"], $target_file)) { echo "

Cast Certificate file ". basename( $_FILES["cast"]["name"]). " has been uploaded.


"; } else { echo "

Cast Certificate -File, there was an error uploading your file.


"; } } } if($okk>3){ echo $echoinfo01; $to = $_POST["EMAIL"]; $subject = "Admission information 2017-19 ,Banipur Mahila Mahavidyalaya"; $message = ' Admission information 2017-19 ,Banipur Mahila Mahavidyalaya

Hi,
Online form submission success !!

Name :- '.$_POST["STUDENT_NAME"].'

1. Form No:- BM17UG'.$tsid.'



'; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: BMMV Admission ' . "\r\n"; $headers .= 'Reply-To: rishu.ccp@gmail.com'. "\r\n"; //$headers .= 'Cc: myboss@example.com' . "\r\n"; mail($to,$subject,$message,$headers); } else echo '

Fill up the admission form again

'; } ?>