-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.php
48 lines (45 loc) · 1.63 KB
/
edit.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Add a Book</title>
<link rel="stylesheet" href="CSS/stylesheet.css">
<style>
#navbar{
position: relative;
}
</style>
</head>
<body>
<nav id="navbar">
<a href="home.php" id="" class="navlink">Home</a>
<a href="logout.php" id="" class="navlink">Logout</a>
</nav>
<div class="main">
<div class="cover">
<h1>Add a Book</h1>
</div>
<div id="form_div">
<form action="edit_handle.php" method="post">
<input type="hidden" name="id" value="<?php echo $_GET['id'] ?>">
<div>
<label for="book_title">Enter book title:</label>
<input type="text" name="book_title" id="book_title"><br>
</div>
<div id="textarea">
<label for="book_description">Enter Book Description:</label>
<textarea name="book_description" id="book_description" cols="30" rows="10"></textarea><br>
</div>
<div class="img">
<label for="book_pic">Image source:</label>
<input type="file" name="img" id="img"><br>
</div>
<input type="submit" id='submit_button' name="submit" value="Edit">
<input type="submit" id='submit_button' name="submit" value="Delete">
</form>
</div>
</div>
</body>
</html>