forked from Shubhamb7/OnlineMovieStreaming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountp.php
79 lines (54 loc) · 2.62 KB
/
accountp.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>NeonFlix-Account</title>
<link rel="stylesheet" href="homepage.css" type="text/css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<a href="homepage.php" class="navbar-brand"> <img src="images/logo.png" alt=""> </a>
<span class="navbar-text">NeonFlix</span>
<ul class="navbar-nav">
<li class="nav-item"> <a href="homepage.php" class="nav-link">Home</a> </li>
<li class="nav-item"> <a href="logout.php" class="nav-link">Logout</a> </li>
</ul>
</nav>
</header>
<div class="container">
<?php
include 'dbh.php';
$id = $_SESSION['id'];
$sql = "SELECT * FROM user1 WHERE id = $id ";
$newrecords = mysqli_query($conn,$sql);
$result = mysqli_fetch_assoc($newrecords);
echo" <form action='update.php' method='POST'>
<br><br><input type='text' class='form-control' placeholder='Enter full name' name='fname' value='".ucwords($result['name'])."'>
<br>
<input type='text' class='form-control' placeholder='Enter mobile number' name='phn' value='".$result['phone']."'>
<br>
<label><b>Date of Birth : </b></label>
<input type='text' class='from-control' placeholder='Enter Date of Birth' name='dob' value='".$result['DOB']."'><br>
<div class='signupbutton'>
<br><br>
<button type='submit' class='btn btn-success' name='sub' value='submit'>Update Details</button>
</div>
</form>
<br><br>
<label><b>Email Id : </b>".$result['email']."</label>
<br><br>
<form class='' action='updatep.php' method='post'>
<input type='password' class='form-control' placeholder='Enter old password' name='oldp'><br>
<input type='password' class='form-control' placeholder='Enter new password' name='newp'><br>
<button type='submit' class='btn btn-success ' name='subpass' value='submit'>Update Password</button><br>
</form>
";
?>
</div>
</body>
</html>