-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_book.html
45 lines (39 loc) · 1.61 KB
/
add_book.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="favicon\android-chrome-512x512.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add Book</title>
<link rel="stylesheet" href="common.css">
<link rel="stylesheet" href="add_book.css">
</head>
<body>
<?php include 'navbar.php'; ?>
<main>
<h1><a href="index.html" style="text-decoration: none; color: inherit;">Add a New Book</a></h1>
<form action="add_book.php" method="POST">
<div class="form-group">
<label for="title">Title:</label>
<input type="text" id="title" name="title" required placeholder="Enter book title">
</div>
<div class="form-group">
<label for="author">Author:</label>
<input type="text" id="author" name="author" required placeholder="Enter author's name">
</div>
<div class="form-group">
<label for="publication_year">Publication Year:</label>
<input type="number" id="publication_year" name="publication_year" min="2000" required placeholder="Enter publication year (after 2000)">
</div>
<div class="form-group">
<label for="genre">Genre:</label>
<input type="text" id="genre" name="genre" required placeholder="Enter genre">
</div>
<button type="submit">Add Book</button>
</form>
</main>
<footer>
<p>© 2024 Library Management System</p>
</footer>
</body>
</html>