Server IP : 50.63.8.133 / Your IP : 3.138.37.184 Web Server : Microsoft-IIS/10.0 System : Windows NT P3NWVPWEB032 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : IWPD_10999(xformtec) ( 0) PHP Version : 5.4.45 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : G:/PleskVhosts/xform.in/madhurivivah.com/member/ |
Upload File : |
Current File : G:/PleskVhosts/xform.in/madhurivivah.com/member/edit-personal-information.php |
<?php
if (isset($_POST['update'])) {
$first_name = $_POST['first_name'];
$middle_name = $_POST['middle_name'];
$last_name = $_POST['last_name'];
$date_of_birth = $_POST['date_of_birth'];
$age = $_POST['age'];
$hieght = $_POST['hieght'];
$blood_group = $_POST['blood_group'];
$skin_type = $_POST['skin_type'];
$weight = $_POST['weight'];
$body_look = $_POST['body_look'];
$lence = $_POST['lence'];
$cast = $_POST['cast'];
$sub_cast = $_POST['sub_cast'];
$religion = $_POST['religion'];
$married_status = $_POST['married_status'];
$mobile_number = $_POST['mobile_number'];
if (isset($_SESSION['member_profile_id']) && $_SESSION['member_profile_id'] != '') {
$sql1 = "UPDATE member_profile SET first_name='$first_name',middle_name='$middle_name',cast='$cast',sub_cast='$sub_cast',religion='$religion',married_status='$married_status',mobile_number='$mobile_number',last_name='$last_name',date_of_birth='$date_of_birth',age='$age',hieght='$hieght',blood_group='$blood_group',skin_type='$skin_type',weight='$weight',body_look='$body_look',lence='$lence' WHERE member_profile_id='" . $_SESSION['member_profile_id'] . "'";
if (mysqli_query($con, $sql1)) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
window.location.href = 'profile-account-setting.php';
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
//if ($query) {
//$msg = " Your Personal Information updated ";
// } else {
//$error = "Something went wrong . Please try again.";
// }
}
}
?>
<p> <?php echo htmlentities($ermsg); ?></p>
<table class="table table-bordered">
<tbody>
<tr>
<td>GROOM / BRIDE FIRST NAME :-
</td>
<td> <input class="form-control" name="first_name" type="text" value="<?php echo htmlentities($row['first_name']); ?>"></input> </td>
</tr>
<tr>
<td>GROOM / BRIDE LAST NAME :-
</td>
<td><input class="form-control" name="last_name" type="text" value="<?php echo htmlentities($row['last_name']); ?>"></input></td>
</tr>
<tr>
<td>GENDER :-
</td>
<td><input class="form-control" name="gender" type="text" value="<?php echo htmlentities($row['gender']); ?>"></input></td>
</tr>
<tr>
<td>MARITAL STATUS :-
</td>
<td>
<select name="married_status" class="btn btn-warning form-control" value="<?php echo htmlentities($row['married_status']); ?>">
<?php
if($row['married_status']){ ?>
<option value="<?php
echo $row['married_status'];
?>"><?php
echo $row['married_status'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Your marrital Status--</option>
<?php
}
?>
<?php
// Feching active categories
$ret = mysqli_query($con, "select id,marrital_status_name from marrital_status where status=1");
while ($result = mysqli_fetch_array($ret)) {
?>
<option value="<?php echo htmlentities($result['marrital_status_name']); ?>"><?php echo htmlentities($result['marrital_status_name']); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>MOBILE NUMBER :-
</td>
<td><input class="form-control" name="mobile_number" type="text" value="<?php echo htmlentities($row['mobile_number']); ?>"></input></td>
</tr>
<tr>
<td>EMAIL ID :-
</td>
<td><input class="form-control" name="email" type="text" value="<?php echo htmlentities($row['email']); ?>"></input></td>
</tr>
<tr>
<td>DATE OF BIRTH :-
</td>
<td><input class="form-control" type="text" value="<?php echo htmlentities($row['date_of_birth']); ?>"></input>
<input class="form-control" name="date_of_birth" type="text" value="<?php echo htmlentities($row['date_of_birth']); ?>"></input>
</td>
</tr>
<tr>
<td>RELIGION :-
</td>
<td>
<select class="btn btn-warning form-control" name="religion" value="<?php echo htmlentities($row['religion']); ?>">
<?php
if($row['religion']){ ?>
<option value="<?php
echo $row['religion'];
?>"><?php
echo $row['religion'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Your Religion--</option>
<?php
}
?>
<option value="Hindu" name="">Hindu</option>
</select>
</td>
</tr>
<tr>
<td>CAST :-
</td>
<td>
<select class="btn btn-warning form-control" name="cast" value="<?php if (isset($row)) {
echo $row['cast'];
} ?>">
<?php
if($row['cast']){ ?>
<option value="<?php
echo $row['cast'];
?>"><?php
echo $row['cast'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Your Cast--</option>
<?php
}
?>
<?php
// Feching active categories
$ret = mysqli_query($con, "select id,name_cast from all_cast where status=1");
while ($result = mysqli_fetch_array($ret)) {
?>
<option value="<?php echo htmlentities($result['name_cast']); ?>"><?php echo htmlentities($result['name_cast']); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>SUB_CAST :-
</td>
<td><input class="form-control" name="sub_cast" type="text" value="<?php echo htmlentities($row['sub_cast']); ?> "></input> </td>
</tr>
<tr>
<td>AGE :-
</td>
<td><input class="form-control" name="age" type="text" value="<?php echo htmlentities($row['age']); ?> Years"></input> </td>
</tr>
<tr>
<td>HIGHT :-
</td>
<td><input class="form-control" name="hieght" type="text" value="<?php echo htmlentities($row['hieght']); ?> ">FT/INCH</input> </td>
</tr>
<tr>
<td>BLOOD GROUP :-
</td>
<td>
<select class="btn btn-warning form-control" name="blood_group" value="<?php if (isset($row)) {
echo $row['blood_group'];
} ?>">
<?php
if($row['blood_group']){ ?>
<option value="<?php
echo $row['blood_group'];
?>"><?php
echo $row['blood_group'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Option--</option>
<?php
}
?>
<option value="A+" name="">A Positive</option>
<option value="A-" name="">A Negative</option>
<option value="A?" name="">A Unknown</option>
<option value="B+" name="">B Positive</option>
<option value="B-" name="">B Negative</option>
<option value="B?" name="">B Unknown</option>
<option value="AB+" name="">AB Positive</option>
<option value="AB-" name="">AB Negative</option>
<option value="AB?" name="">AB Unknown</option>
<option value="O+" name="">O Positive</option>
<option value="O-" name="">O Negative</option>
<option value="O?" name="">O Unknown</option>
<option value="?" name="">Unknown</option>
</select>
</td>
</tr>
<tr>
<td>COMPLEXION :-
</td>
<td>
<select class="btn btn-warning form-control" name="skin_type" value="<?php if (isset($row)) {
echo $row['skin_type'];
} ?>">
<?php
if($row['skin_type']){ ?>
<option value="<?php
echo $row['skin_type'];
?>"><?php
echo $row['skin_type'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Option--</option>
<?php
}
?>
<option value="wheatish" name="">Wheatish(गहूवर्ण)</option>
<option value="Fair" name="">Fair(गोरा)</option>
<option value="Dark" name="">Dark(काळा/सावळा)</option>
</select>
</td>
</tr>
<tr>
<td>WEIGHT :-
</td>
<td><input class="form-control" name="weight" type="text" value="<?php echo htmlentities($row['weight']); ?>">KG</input> </td>
</tr>
<tr>
<td>BUILT :-
</td>
<td>
<select id="p-select" class="btn btn-warning form-control" name="body_look" value="<?php if (isset($row)) {
echo $row['body_look'];
} ?>">
<?php
if($row['body_look']){ ?>
<option value="<?php
echo $row['body_look'];
?>"><?php
echo $row['body_look'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Option--</option>
<?php
}
?>
<option value="Stout">Stout</option>
<option value="Medium">Medium</option>
<option value="Slim">Slim</option>
</select>
</td>
</tr>
<tr>
<td>LENSES/SPECTS :-
</td>
<td>
<select id="p-select" class="btn btn-warning form-control" name="lence" value="<?php if (isset($row)) {
echo $row['lence'];
} ?>">
<?php
if($row['lence']){ ?>
<option value="<?php
echo $row['lence'];
?>"><?php
echo $row['lence'];
?></option>
<?php
}
else{ ?>
<option value="">--Please choose an Option--</option>
<?php
}
?>
<option value="yes">yes</option>
<option value="No">no</option>
</select>
</td>
</tr>
</tbody>
</table>
<div class="save-stngs pd2">
<ul>
<button class="btn btn-primary" name="update" type="submit"><b>Update Personal Information</b></button>
</ul>
</div>