Server IP : 50.63.8.133 / Your IP : 3.148.200.110 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-family-information.php |
<?php
if (isset($_POST['update2'])) {
$father_name = $_POST['father_name'];
$mother_name = $_POST['mother_name'];
$all_brothers = $_POST['all_brothers'];
$all_sisters = $_POST['all_sisters'];
$family_work = $_POST['family_work'];
$diet = $_POST['diet'];
if (isset($_SESSION['member_profile_id']) && $_SESSION['member_profile_id'] != '') {
$sql1 = "UPDATE member_profile SET father_name='$father_name',
mother_name='$mother_name',
all_brothers='$all_brothers',
all_sisters='$all_sisters',
family_work='$family_work',
diet='$diet'
WHERE member_profile_id='" . $_SESSION['member_profile_id'] . "'";
if (mysqli_query($con, $sql1)) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
}
}
?>
<p> <?php echo htmlentities($ermsg); ?></p>
<table class="table table-bordered">
<tbody>
<tr>
<td> YOUR FATHER NAME :-
</td>
<td> <input class="form-control" name="father_name" type="text" value="<?php echo htmlentities($row['father_name']); ?>"></input> </td>
</tr>
<tr>
<td>YOUR MOTHER NAME :-
</td>
<td><input class="form-control" name="mother_name" type="text" value="<?php echo htmlentities($row['mother_name']); ?>"></input></td>
</tr>
<tr>
<td>HOW MANY BROTHERS :-
</td>
<td><input class="form-control" name="all_brothers" type="text" value="<?php echo htmlentities($row['all_brothers']); ?>"></input></td>
</tr>
<tr>
<td>HOW MANY SISTERS:-
</td>
<td><input class="form-control" name="all_sisters" type="text" value="<?php echo htmlentities($row['all_sisters']); ?>"></input></td>
</tr>
<tr>
<td> FAMILY OCCUPATION:-
</td>
<td><input class="form-control" name="family_work" type="text" value="<?php echo htmlentities($row['family_work']); ?>"></input></td>
</tr>
</tbody>
</table>
<div class="save-stngs pd2">
<ul>
<button class="btn btn-primary" name="update2" type="submit"><b>Update Family Information</b></button>
</ul>
</div>