format($format) == $input_date; // } if (preg_match("/^([a-zA-Z' ]+)$/", $_POST['applicant_name'])){}else{die("");} if (filter_var($_POST['email_id'], FILTER_VALIDATE_EMAIL)){}else{ die("");} if ((preg_match('/^\d+\.?\d*$/', $_POST['mobile_number'])) && strlen($_POST['mobile_number']) == 10){}else{die("");} if (preg_match('/^\d{10}$/', $_POST['mobile_number'])) { // Validation passes } else { die(""); } if (filter_var($_POST['email_id'], FILTER_VALIDATE_EMAIL)) { // Validation passes } else { die(""); } // function exclude_default_all_post(){ // $pattern = '/[\'\/~`\!@#\$%\^&\*\(\)\-\+=\{\}\[\]\|;:"\<\>\\?\\\]/'; // $lable = array('applicant_name' => 'APPLICANT NAME' ,'mobile_number' => 'MOBILE NUMBER','email_id' => 'EMAIL ID','office_pincode' => 'PINCODE','annual_turnover' => 'ANNUAL TURNOVER','social_category' => 'SOCIAL CATEGORY','aadhaar_number' => 'AADHAAR NUMBER','uam_number' => 'PREVIOUS UAM NUMBER','pan_card_number' => 'PAN CARD NUMBER','bank_account_number' => 'BANK ACCOUNT NUMBER','ifsc_code' => 'IFSC CODE','business_name' => 'BUSINESS NAME','type_of_organisation' => 'TYPE OF ORGANISATION','main_business_activity_of_enterprise' => 'MAIN BUSINESS ACTIVITY OF ENTERPRISE','additional_details_about_business' => 'ADDITIONAL DETAILS ABOUT BUSINESS','investment_in_plant_and_machinery' => 'INVESTMENT IN PLANT AND MACHINERY','date_of_commencement_of_business' => 'DATE OF COMMENCEMENT OF BUSINESS','office_address' => 'OFFICE ADDRESS'); // foreach ($_POST as $id=>$value){ // // only if catcpa // if($id == "vercode"){continue;} // // if($id == "plant_state"){continue;} // if($id == "type_of_organisation"){continue;} // // if($id == "activity of enterprise"){continue;} // // if($id == "form_name"){continue;} // // if($id == "form_id"){continue;} // if($id == "date_of_commencement_of_business"){continue;} // if($id == "office_state"){continue;} // if($id == "office_district"){continue;} // // if($id == "main_business_activity_of_enterprise"){continue;} // if(filter_var($value, FILTER_VALIDATE_EMAIL)){ // }elseif(Date_validate($value,'d/m/Y')){ // } // elseif(preg_match($pattern, $value)){ // if((isset($lable[$id]))&&($lable[$id] == "OFFICE ADDRESS")){ return "Please Don\'t use special characters in ". strtolower($lable[$id]); break;} // if(isset($lable[$id])){ return "Please enter valid ". strtolower($lable[$id]); break;} // return "Please Don\'t use special characters"; // break; // } // } // } // $result_special = exclude_default_all_post(); // if((isset($result_special)) && ($result_special !== false) && ($result_special != "")){ // die(" // // "); // } if (isset($_POST["applicant_name"]) && $_POST["applicant_name"] !== "") { $applicant_name = $_POST["applicant_name"]; }else{ $applicant_name =''; } if (isset($_POST["mobile_number"]) && $_POST["mobile_number"] !== "") { $mobile_number = $_POST["mobile_number"]; }else{ $mobile_number =''; } if (isset($_POST["email_id"]) && $_POST["email_id"] !== "") { $email_id = $_POST["email_id"]; }else{ $email_id =''; } if (isset($_POST["office_address"]) && $_POST["office_address"] !== "") { $officeAddress = filter_var($_POST["office_address"], FILTER_SANITIZE_STRING); }else{ $officeAddress =''; }if (isset($_POST["office_state"]) && $_POST["office_state"] !== "") { $officeState = $_POST["office_state"]; }else{ $officeState =''; }if (isset($_POST["office_district"]) && $_POST["office_district"] !== "") { $officeDistrict = $_POST["office_district"]; }else{ $officeDistrict =''; }if (isset($_POST["office_pincode"]) && $_POST["office_pincode"] !== "") { $officePincode = $_POST["office_pincode"]; }else{ $officePincode =''; }if (isset($_POST["social_category"]) && $_POST["social_category"] !== "") { $socialCategory = $_POST["social_category"]; }else{ $socialCategory =''; }if (isset($_POST["aadhaar_number"]) && $_POST["aadhaar_number"] !== "") { $aadhaarnumber = $_POST["aadhaar_number"]; }else{ $aadhaarnumber =''; }if (isset($_POST["uam_number"]) && $_POST["uam_number"] !== "") { $uamNumber = $_POST["uam_number"]; }else{ $uamNumber =''; }if (isset($_POST["bank_account_number"]) && $_POST["bank_account_number"] !== "") { $bankAccountNumber = $_POST["bank_account_number"]; }else{ $bankAccountNumber =''; }if (isset($_POST["ifsc_code"]) && $_POST["ifsc_code"] !== "") { $ifscCode = $_POST["ifsc_code"]; }else{ $ifscCode =''; }if (isset($_POST["business_name"]) && $_POST["business_name"] !== "") { $businessName = $_POST["business_name"]; }else{ $businessName =''; }if (isset($_POST["date_of_commencement_of_business"]) && $_POST["date_of_commencement_of_business"] !== "") { $dateOfCommencement = $_POST["date_of_commencement_of_business"]; }else{ $dateOfCommencement =''; }if (isset($_POST["type_of_organisation"]) && $_POST["type_of_organisation"] !== "") { $typeOfOrganisation = $_POST["type_of_organisation"]; }else{ $typeOfOrganisation =''; }if (isset($_POST["main_business_activity_of_enterprise"]) && $_POST["main_business_activity_of_enterprise"] !== "") { $mainBusinessActivities = $_POST["main_business_activity_of_enterprise"]; }else{ $mainBusinessActivities =''; }if (isset($_POST["additional_details_about_business"]) && $_POST["additional_details_about_business"] !== "") { $additionalDetails = $_POST["additional_details_about_business"]; }else{ $additionalDetails =''; } if (isset($_POST["persons_employed_male"]) && $_POST["persons_employed_male"] !== "") { $personEmployedMale = $_POST["persons_employed_male"]; }else{ $personEmployedMale =''; } if (isset($_POST["persons_employed_female"]) && $_POST["persons_employed_female"] !== "") { $personEmployedFemale = $_POST["persons_employed_female"]; }else{ $personEmployedFemale =''; } if (isset($_POST["persons_employed_other"]) && $_POST["persons_employed_other"] !== "") { $personEmployedOther = $_POST["persons_employed_other"]; }else{ $personEmployedOther =''; }if (isset($_POST["persons_employed_total"]) && $_POST["persons_employed_total"] !== "") { $personEmployedTotal = $_POST["persons_employed_total"]; }else{ $personEmployedTotal =''; } if (isset($_POST["udyam_number"]) && $_POST["udyam_number"] !== "") { $udyamNumber = $_POST["udyam_number"]; }else{ $udyamNumber =''; } if (isset($_POST["opt_selected"]) && $_POST["opt_selected"] !== "") { $optSelected = $_POST["opt_selected"]; }else{ $optSelected =''; } if (isset($_POST["updated_details"]) && $_POST["updated_details"] !== "") { $updatedDetails = $_POST["updated_details"]; }else{ $updatedDetails =''; } ?>