golden hour
/home4/theinves/public_html/seshaasschool.com/api
⬆️ Go Up
Upload
File/Folder
Size
Actions
form_transfer-certificate.php
995 B
Del
OK
forms_registration.php
4.34 KB
Del
OK
forms_schedule_a_tour.php
1.25 KB
Del
OK
modal
-
Del
OK
Edit: forms_registration.php
<?php ob_start(); session_start(); include "../dashboard/config/config.php"; include "../dashboard/config/session.php"; if(isset($_POST['type']) && $_POST['type']=='submission'){ try{ $reg_date = $_POST['reg_date']; $admission_class = $_POST['admission_class']; $name = $_POST['name']; $date = $_POST['date']; $age = $_POST['age']; $gender = $_POST['gender']; $nation = $_POST['nation']; $religion = $_POST['religion']; $community = $_POST['community']; $caste = $_POST['caste']; $previous_school = $_POST['previous_school']; $father_name = $_POST['father_name']; $father_qualification = $_POST['father_qualification']; $father_occupation = $_POST['father_occupation']; $father_designation = $_POST['father_designation']; $father_annual = $_POST['father_annual']; $father_telephone = $_POST['father_telephone']; $father_mobile = $_POST['father_mobile']; $father_email = $_POST['father_email']; $mother_name = $_POST['mother_name']; $mother_qualification = $_POST['mother_qualification']; $mother_occupation = $_POST['mother_occupation']; $mother_designation = $_POST['mother_designation']; $mother_annual_income = $_POST['mother_annual_income']; $mother_mobile_no = $_POST['mother_mobile_no']; $mother_mail = $_POST['mother_mail']; $existing_student = $_POST['existing_student']; $section = $_POST['section']; $relationship = $_POST['relationship']; $address_communication = $_POST['address_communication']; $statement = $pdo->prepare("INSERT INTO `tbl_registration_form`(`name`, `date`, `age`, `gender`, `nation`, `religion`, `community`, `caste`, `previous_school`, `father_name`, `father_qualification`, `father_occupation`, `father_designation`, `father_annual`, `father_telephone`, `father_mobile`, `father_email`, `mother_name`, `mother_qualification`, `mother_occupation`, `mother_designation`, `mother_annual_income`, `mother_mobile_no`, `mother_mail`, `existing_student`, `section`, `relationship`, `address_communication`, `reg_date`, `admission_class`) VALUES (?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?)"); $result = $statement->execute(array($name, $date, $age, $gender, $nation, $religion, $community, $caste, $previous_school, $father_name, $father_qualification, $father_occupation, $father_designation, $father_annual, $father_telephone, $father_mobile, $father_email, $mother_name, $mother_qualification, $mother_occupation, $mother_designation, $mother_annual_income, $mother_mobile_no, $mother_mail, $existing_student, $section, $relationship, $address_communication, $reg_date, $admission_class)); if($result){ $return_arr['message']='Form Submitted Successfully...'; $return_arr['status']=200; } else{ $return_arr['message']='Something Went Wrong..'; $return_arr['status']=400; } }catch(PDOException $e){ $return_arr['message']="$e.$visit"; $return_arr['status']=500; } echo json_encode($return_arr); } ?>
Save