-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit_profile.php
46 lines (34 loc) · 1.67 KB
/
edit_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
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>แก้ไขโปรไฟล์ของคุณ</title>
<link rel="icon" type="image/png" href="images/main_pic.jfif"/>
<link rel="stylesheet" href="css/editprofile.css">
</head>
<body>
<?php
session_start();
include('server.php');
// Check if the form is submitted
?>
<div class="container">
<h2>แก้ไขโปรไฟล์ของคุณ</h2>
<form method="POST" action="EditProfileSave.php">
<input type="hidden" id="username" name="username" value="<?= $_SESSION['username']; ?>">
<label for="address">ชื่อ</label>
<input type="text" id="fname" name="fname" value="<?= $_SESSION['fname']; ?>" required>
<label for="address">นามสกุล</label>
<input type="text" id="lname" name="lname" value="<?= $_SESSION['lname']; ?>" required>
<label for="address">ที่อยู่:</label>
<input type="text" id="address" name="address" value="<?= $_SESSION['address']; ?>">
<label for="phone">เบอร์โทร:</label>
<input type="text" id="phone" name="phone" pattern="[0-9]{10}" maxlength="10" minlength = "10" value="<?= $_SESSION['phone']; ?>">
<label for="email">อีเมล:</label>
<input type="email" id="email" name="email" value="<?= $_SESSION['email']; ?>" required>
<button type="submit" name = "Edit_customers">บันทึกการเปลี่ยนแปลง</button>
<button type="button" class="cancel-button" onclick="window.location.href='profile.php'">ยกเลิก</button>
</form>
</div>
</body>
</html>