-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeleteData.php
More file actions
40 lines (31 loc) · 967 Bytes
/
Copy pathdeleteData.php
File metadata and controls
40 lines (31 loc) · 967 Bytes
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
<?php
//連接php與sql
//$conn = mysqli_connect("localhost","administrator","123456","bookcase");
require 'connect.php';
$bookId=$_POST['bookId'];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>刪除書籍</title>
</head>
<body>
<center>
<h1>確定要刪除此資料嗎?</h1>
<!--按鈕-->
<div class="text-center mt-8">
<form action="deleteDataExtra.php" method="post">
<input type="hidden" name="bookId" value="<?php echo $bookId; ?>">
<button type="submit" class="btn btn-danger">
是,請刪除
</button>
</form>
<button type="button" class="btn btn-primary" target="_blank" text-#7d6f6fe8>
<a href="http://localhost/bookcase/bookMainCode.php">否</a>
</button>
</div>
</center>
</body>
</html>