-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
39 lines (34 loc) · 1.12 KB
/
index.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
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Basic router</title>
</head>
<body>
<a href="route/book">Show all books</a> <br/>
<a href="route/book/create">Show create new book</a> <br/>
<a href="route/book/35">Show single book</a> <br/>
<a href="route/book/35/edit">Edit single book</a> <br/>
<h3>Create new book</h3>
<form method="post" action="route/book">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="hidden" name="_method" value="post" />
<input type="submit" name="send" value="Send" />
</form>
<h3>Update existing book</h3>
<form method="post" action="route/book/35">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="hidden" name="_method" value="put" />
<input type="submit" name="send" value="Send" />
</form>
<h3>Delete existing book</h3>
<form method="post" action="route/book/35">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="hidden" name="_method" value="delete" />
<input type="submit" name="send" value="Send" />
</form>
</body>
</html>