-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
51 lines (43 loc) · 1.88 KB
/
profile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php include_once('assets/script.php'); include_once('header.php'); ?>
<section><!--form-->
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<?php
if(isset($_POST['btnUpdate']))
{
$updated=update('customer',$_POST,"emailid",$_SESSION['logid'],'btnUpdate');
if($updated)
{
msg_box('Your details updated successfully... ','success');
}
else
{
msg_box('update failed...','danger');
}
}
$prof=get_by_id('customer',"emailid",$_SESSION['logid']);
?>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-sm-offset-2">
<h3 class="well">Welcome <?php echo $prof['name']?></h3>
</div>
<div class="col-sm-4">
<div class="signup-form"><!--sign up form-->
<h2>Your Profile Details</h2>
<form action="profile.php" method="post">
<input type="text" value="<?php echo $prof['name']?>" name="name" placeholder="Name"/>
<input type="email" readonly value="<?php echo $prof['emailid']?>" name="emailid" placeholder="Email Address"/>
<input type="text" readonly value="<?php echo $prof['address']?>" name="address" placeholder="Address">
<input type="text" readonly value="<?php echo $prof['city']?>" name="city" placeholder="city"/>
<input type="text" readonly value="<?php echo $prof['contactno']?>" name="contactno" placeholder="contactno"/>
<button type="submit" name="btnUpdate" class="btn btn-default">Update</button>
</form>
</div><!--/sign up form-->
</div>
</div>
</div>
</section><!--/form-->
<?php include_once('footer.php'); ?>