<?php
if( $_POST['add']){
$full_name =IsSet($_POST['full_name'])? make_it_safe($_POST['full_name']) :Null;
$nameeng =IsSet($_POST['nameeng'])? make_it_safe($_POST['nameeng']) :Null;
$age_yaer =IsSet($_POST['age_yaer'])? make_it_safe($_POST['age_yaer']) :Null;
$age_yaer =IsSet($_POST['age_yaer'])? make_it_safe($_POST['age_yaer']) :Null;
$age_month =IsSet($_POST['age_month'])? make_it_safe($_POST['age_month']) :Null;
$age_day =IsSet($_POST['age_day'])? make_it_safe($_POST['age_day']) :Null;
$six =IsSet($_POST['six'])? make_it_safe($_POST['six']) :Null;
$loction =IsSet($_POST['loction'])? make_it_safe($_POST['loction']) :Null;
$colgename =IsSet($_POST['colgename'])? make_it_safe($_POST['colgename']) :Null;
$step_colge =IsSet($_POST['step_colge'])? make_it_safe($_POST['step_colge']) :Null;
$year =IsSet($_POST['year'])? make_it_safe($_POST['year']) :Null;
$status =IsSet($_POST['status'])? make_it_safe($_POST['status']) :Null;
$shada =IsSet($_POST['shada'])? make_it_safe($_POST['shada']) :Null;
$phone =IsSet($_POST['phone'])? make_it_safe($_POST['phone']) :Null;
$email =IsSet($_POST['email'])? make_it_safe($_POST['email']) :Null;
$numbage =IsSet($_POST['numbage'])? make_it_safe($_POST['numbage']) :Null;
$jopnow =IsSet($_POST['jopnow'])? make_it_safe($_POST['jopnow']) :Null;
$loction_jop =IsSet($_POST['loction_jop'])? make_it_safe($_POST['loction_jop']) :Null;
$show_new =IsSet($_POST['show_new'])? make_it_safe($_POST['show_new']) :Null;
$cantry =IsSet($_POST['cantry'])? make_it_safe($_POST['cantry']) :Null;
$cantry_q =IsSet($_POST['cantry_q'])? make_it_safe($_POST['cantry_q']) :Null;
$cantry_n =IsSet($_POST['cantry_n'])? make_it_safe($_POST['cantry_n']) :Null;
$cantry_d =IsSet($_POST['cantry_d'])? make_it_safe($_POST['cantry_d']) :Null;
$wher_jop =IsSet($_POST['wher_jop'])? make_it_safe($_POST['wher_jop']) :Null;
$wher_halth =IsSet($_POST['wher_halth'])? make_it_safe($_POST['wher_halth']) :Null;
$name_j_h =IsSet($_POST['name_j_h'])? make_it_safe($_POST['name_j_h']) :Null;
$time_jop =IsSet($_POST['time_jop'])? make_it_safe($_POST['time_jop']) :Null;
$mdat_jop =IsSet($_POST['mdat_jop'])? make_it_safe($_POST['mdat_jop']) :Null;
$safa_jop =IsSet($_POST['safa_jop'])? make_it_safe($_POST['safa_jop']) :Null;
$darerag =time();
$images=$_FILES['persenlpic'];
if(isset($_FILES['persenlpic'])){
$errors= array();
$file_name = $_FILES['persenlpic']['name'];
$file_size =$_FILES['persenlpic']['size'];
$file_tmp =$_FILES['persenlpic']['tmp_name'];
$file_type=$_FILES['persenlpic']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['persenlpic']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$images1=$_FILES['jansea'];
if(isset($_FILES['jansea'])){
$errors= array();
$file_name = $_FILES['jansea']['name'];
$file_size =$_FILES['jansea']['size'];
$file_tmp =$_FILES['jansea']['tmp_name'];
$file_type=$_FILES['jansea']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['jansea']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$images2=$_FILES['wtana'];
if(isset($_FILES['wtana'])){
$errors= array();
$file_name = $_FILES['wtana']['name'];
$file_size =$_FILES['wtana']['size'];
$file_tmp =$_FILES['wtana']['tmp_name'];
$file_type=$_FILES['wtana']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['wtana']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$images3=$_FILES['wtheqa'];
if(isset($_FILES['wtheqa'])){
$errors= array();
$file_name = $_FILES['wtheqa']['name'];
$file_size =$_FILES['wtheqa']['size'];
$file_tmp =$_FILES['wtheqa']['tmp_name'];
$file_type=$_FILES['wtheqa']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['wtheqa']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$images4=$_FILES['tss'];
if(isset($_FILES['tss'])){
$errors= array();
$file_name = $_FILES['tss']['name'];
$file_size =$_FILES['tss']['size'];
$file_tmp =$_FILES['tss']['tmp_name'];
$file_type=$_FILES['tss']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['tss']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$images5=$_FILES['wtheqa'];
if(isset($_FILES['wtheqa'])){
$errors= array();
$file_name = $_FILES['wtheqa']['name'];
$file_size =$_FILES['wtheqa']['size'];
$file_tmp =$_FILES['wtheqa']['tmp_name'];
$file_type=$_FILES['wtheqa']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['wtheqa']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$images6=$_FILES['tss2'];
if(isset($_FILES['tss2'])){
$errors= array();
$file_name = $_FILES['tss2']['name'];
$file_size =$_FILES['tss2']['size'];
$file_tmp =$_FILES['tss2']['tmp_name'];
$file_type=$_FILES['tss2']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['tss2']['name'])));
$expensions= array("jpeg","jpg","png","pdf","swf");
if(in_array($file_ext,$expensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 20971520000){
$errors[]='File size must be excately 20 MB';
}
if(empty($errors)==true){
move_uploaded_file($file_tmp,"upload/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$persenlpic = $_FILES['persenlpic'] ['name'] ;
$jansea = $_FILES['jansea'] ['name'] ;
$wtana = $_FILES['wtana'] ['name'] ;
$wtheqa = $_FILES['wtheqa'] ['name'] ;
$tss = $_FILES['tss'] ['name'] ;
$tss2 = $_FILES['tss2'] ['name'] ;
$insert = $mysqli->query("INSERT INTO astmara (id,full_name,nameeng,age_yaer,age_month,age_day,six,loction,colgename,step_colge,year,status,shada,phone,email,numbage,jopnow,loction_jop,persenlpic,jansea,wtana,pag,darerag,show_new,cantry,cantry_q,cantry_n,cantry_d,wher_jop,wher_halth,name_j_h,time_jop,mdat_jop,safa_jop,wtheqa,tss,tss2)
VALUE
('','$full_name','$nameeng','$age_yaer','$age_month','$age_day','$six','$loction','$colgename','$step_colge','$year','$status','$shada','$phone','$email','$numbage','$jopnow','$loction_jop','$persenlpic','$jansea','$wtana','$pag','$darerag','$show_new','$cantry','$cantry_q','$cantry_n','$cantry_d','$wher_jop','$wher_halth','$name_j_h','$time_jop','$mdat_jop','$safa_jop','$wtheqa','$tss','$tss2')");
if($insert){
echo"تم ارسال بياناتك بنجاح انتظر حتى يصلك الرد على بريدك الالكتروني لمنحك الرقم الخاص بك ";
}
}
?>