-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.html
38 lines (32 loc) · 1.29 KB
/
forms.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
<!DOCTYPE html>
<html>
<body>
<h2>Forms Test</h2>
<h3>Url Encoded </h3>
<form action="/handle_form" method="post">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
<h3>Multipart</h3>
<form action="/multipart_form" method="post" enctype="multipart/form-data">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
<h3>Multipart File</h3>
<form action="/multipart_form" method="post" enctype="multipart/form-data">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><br><br>
<label for="cover_image">Cover Image</label><br>
<input type="file" id="cover_image" name="cover_image" accept=".jpg, .jpeg, .png"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>