| Current Path : /var/www/html/mmishra/indem/iiita/backup/ |
| Current File : /var/www/html/mmishra/indem/iiita/backup/registration_online.php |
<?php
//checkadmin($role);
$tbl = 'registrations';
$id = $_REQUEST["id"];
$submit = $_POST["submit"];
if ($submit == 'SUBMIT') {
$scheme_name = $_POST["scheme_name"];
$scheme_code = $_POST["scheme_code"];
$property_category = $_POST["property_category"];
$property_code = $_POST["property_code"];
$applicant_name = $_POST["applicant_name"];
$present_address = $_POST["present_address"];
$age = $_POST["age"];
$sex = $_POST["sex"];
$marital_status = $_POST["marital_status"];
$quota = $_POST["quota"];
$occupation = $_POST["occupation"];
$payplan = $_POST["payplan"];
$income_code = $_POST["income_code"];
$annual_income = $_POST["annual_income"];
$applicant_fhname = $_POST["applicant_fhname"];
$permanent_address = $_POST["permanent_address"];
$phone_no = $_POST["phone_no"];
$email = $_POST["email"];
$nominee_name = $_POST["nominee_name"];
$nominee_fhname = $_POST["nominee_fhname"];
$adaproperty_owner = $_POST["adaproperty_owner"];
if (mysql_num_rows(mysql_query("select * from $tbl where id=$id"))) {
mysql_query("update $tbl set scheme_name='$scheme_name',scheme_code='$scheme_code',
property_category='$property_category',property_code='$property_code',applicant_name='$applicant_name',
present_address='$present_address',age=$age,sex='$sex',marital_status='$marital_status',
quota='$quota',occupation='$occupation',payplan='$payplan',income_code='$income_code',
annual_income=$annual_income,applicant_fhname='$applicant_fhname',,permanent_address='$permanent_address',
phone_no='$phone_no',email='$email',nominee_name='$nominee_name',nominee_fhname='$nominee_fhname',
adaproperty_owner='$adaproperty_owner'
where id=$id");
} else {
mysql_query("insert into $tbl(scheme_name,scheme_code,property_category,property_code,applicant_name,
present_address,age,sex,marital_status,quota,occupation,payplan,income_code,annual_income,
applicant_fhname,permanent_address,phone_no,email,nominee_name,nominee_fhname,adaproperty_owner,dated)
values('$scheme_name','$scheme_code','$property_category','$property_code','$applicant_name',
'$present_address',$age,'$sex','$marital_status','$quota','$occupation','$payplan','$income_code',
$annual_income,'$applicant_fhname','$permanent_address','$phone_no','$email',
'$nominee_name','$nominee_fhname','$adaproperty_owner',now())");
echo "Thanks for registration...<p>
Your registration number is <b>ADA-Reg-".mysql_insert_id()."</b><br>
Please use your registration number in further communication with development authority.";
}
} else {
include "registration_form.inc";
}
?>