registration_form

By | 29/12/2018

[insert_php]
define(‘root_path’, “./”);

$reg_data=array(
‘reg_id’=–>””,
‘reg_id_input’=>”,
‘reg_for’=>’‘,
‘fname’=>””,
‘lname’=>””,
‘std_pic’=>”default-pic.jpg”,
‘sign_pic’=>”blank.PNG”,
‘male_sex’=>””,
‘female_sex’=>””,
‘father_name’=>””,
‘dob’=>”27-Jan-2012″,
’email’=>””,
‘mobile’=>””,
‘category’=>”“,
‘state’=>””,
‘locality’=>””,
‘city’=>””,
‘pincode’=>””,
‘address’=>””,
‘pa_locality’=>””,
‘pa_city’=>””,
‘pa_state’=>””,
‘pa_pincode’=>””,
‘pa_address’=>””,
‘center’=>”“,
‘course’=>”“,
‘batch’=>”“,
‘subject’=>”“,
‘session’=>”“,
‘course_mode’=>”“,
// ‘stream’=>”“,
// ‘class’=>”“,
// ‘programme’=>”“,

// ‘eq_vii_school’=>””,
‘eq_gra_course’=>””,
‘eq_gra_collage’=>””,
// ‘eq_vii_school_aff’=>”“,
// ‘eq_vii_year’=>””,
‘eq_gra_university’=>””,
// ‘eq_vii_per’=>””,
‘eq_gra_percentage’=>””,
// ‘eq_x_school’=>””,
‘eq_post_course’=>””,
// ‘eq_x_school_aff’=>”“,
// ‘eq_x_year’=>””,
‘eq_post_college’=>””,
// ‘eq_x_per’=>””,
‘eq_post_university’=>””,
‘eq_post_percentage’=>””,
‘eq_post_passing_year’=>””,
‘eq_gra_passing_year’=>””,
// ‘eq_xii_school’=>””,
// ‘eq_xii_school_aff’=>”“,
// ‘eq_xii_year’=>””,
// ‘eq_xii_per’=>””,
‘eq_exam_name’=>””,
‘eq_exam_year’=>””,
‘eq_exam_rank’=>””,
‘eq_exam_remark’=>””,
‘payment_term’=>’‘,
‘payment_mode’=>’‘,
‘affiliate_from’=>’‘,
‘img_req’=>”required”
);
if(isset($_GET[‘reg_id’])){
$reg_id=$_GET[‘reg_id’];
include_once(“./classes/db.class.php”);
$dbh=new db();
$dbh->select(“reg_data”, “*”, “id=’$reg_id'”, “id desc”, “1”);
if($dbh->sel_count_row>0){
$data=$dbh->select_res;
if($data[‘sex’]==”Male”){
$male_sex=”checked”;
$female_sex=””;
}else{
$male_sex=””;
$female_sex=”checked”;
}
$reg_data=array(
‘reg_id’=>$reg_id,
‘reg_for’=>’‘,
‘reg_id_input’=>’‘,
‘fname’=>$data[‘fname’],
‘lname’=>$data[‘lname’],
‘male_sex’=>$male_sex,
‘female_sex’=>$female_sex,
‘father_name’=>$data[‘father_name’],
‘dob’=>$data[‘dob’],
’email’=>$data[’email’],
‘mobile’=>$data[‘mobile’],
‘category’=>”“,
‘locality’=>$data[‘locality’],
‘city’=>$data[‘city’],
‘state’=>$data[‘state’],
‘pincode’=>$data[‘pincode’],
‘address’=>$data[‘address’],
‘pa_locality’=>$data[‘pa_locality’],
‘pa_city’=>$data[‘pa_city’],
‘pa_state’=>$data[‘pa_state’],
‘pa_pincode’=>$data[‘pa_pincode’],
‘pa_address’=>$data[‘pa_address’],
‘std_pic’=>$data[‘img_src’],
‘sign_pic’=>$data[‘sign_img’],
‘stream’=>”“,
‘class’=>”“,
‘programme’=>”“,
‘center’=>”“,
‘course_mode’=>”“,
‘eq_vii_school’=>$data[‘eq_vii_school’],
‘eq_vii_school_aff’=>’‘,
‘eq_vii_year’=>$data[‘eq_vii_year’],
‘eq_vii_per’=>$data[‘eq_vii_per’],
‘eq_x_school’=>$data[‘eq_x_school’],
‘eq_x_school_aff’=>’‘,
‘eq_x_year’=>$data[‘eq_x_year’],
‘eq_x_per’=>$data[‘eq_x_per’],
‘eq_xii_school’=>$data[‘eq_xii_school’],
‘eq_xii_school_aff’=>’‘,
‘eq_xii_year’=>$data[‘eq_xii_year’],
‘eq_xii_per’=>$data[‘eq_xii_per’],
‘eq_exam_name’=>$data[‘eq_exam_name’],
‘eq_exam_year’=>$data[‘eq_exam_year’],
‘eq_exam_rank’=>$data[‘eq_exam_rank’],
‘eq_exam_remark’=>$data[‘eq_exam_remark’],
‘payment_term’=>’‘,
‘payment_mode’=>’‘,
‘affiliate_from’=>’‘,
‘img_req’=>””
);
}
}
include_once(“./classes/main.class.php”);
$main=new main();
$main->show_msg();
$vars=array(
“page”=>array(
“msg”=>$main->msg,
“msg_cls”=>$main->msg_cls
),
“reg_data”=>$reg_data
);
$main->display(“./pages/reg.ta”, $vars, true);

?>
[/insert_php]

Leave a Reply

Your email address will not be published. Required fields are marked *