-
Notifications
You must be signed in to change notification settings - Fork 0
/
add.php
79 lines (76 loc) · 2.46 KB
/
add.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
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>เพิ่มสินค้า - Tanaka Japan</title>
<link rel="stylesheet" href="css/style-common.css">
<style>
.form-container {
width: 600px;
padding: 50px;
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
display: flex;
flex-direction: column;
justify-content: center;
margin: auto;
}
h3 {
color: #333;
text-align: center;
}
input[type="text"] {
margin-bottom: 15px;
padding: 10px;
font-size: 16px;
border: 1px solid #dee2e6;
border-radius: 5px;
width: 100%;
}
input[type="submit"] {
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
width: 100%;
margin-top: 10px;
}
.btn-success {
background-color: #28a745;
color: white;
}
.btn-success:hover {
background-color: #218838;
}
.btn-danger {
background-color: #dc3545;
color: white;
}
.btn-danger:hover {
background-color: #c82333;
}
</style>
</head>
<body>
<header>
<h1 style="color: white;">เพิ่มสินค้า</h1>
</header>
<section>
<div class="form-container">
<form action="php/adding.php" method="POST">
<h3>รายละเอียดสินค้า</h3>
<input type="text" name="ProductName" placeholder="ชื่อสินค้า">
<input type="text" name="ProductDescription" placeholder="คำอธิบายสินค้า">
<input type="text" name="ProductPrice" placeholder="ราคาสินค้า">
<input type="text" name="ProductRating" placeholder="คะแนนสินค้า">
<input type="submit" class="btn-success" value="เพิ่มข้อมูล">
</form>
<form action="index.php">
<input type="submit" class="btn-danger" value="หน้าแรก">
</form>
</div>
</section>
</body>
</html>