-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.html
129 lines (108 loc) · 3.92 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Forms Demo</h1>
<form action="" method="POST">
<p>
<label for="username">Username</label>
<input type="text" placeholder="username" name="username" id="username" name="username">
</p>
<p>
<label for="password">Password</label>
<input type="password" placeholder="password" name="password" id="password" name="passowrd">
</p>
<p>
<label for="color">Color</label>
<input type="color" name="color" id="color" name="color">
</p>
<p>
<label for="number">Number</label>
<input type="number" placeholder="enter a number" name="number" id="number" name="number">
</p>
<button type="menu">Submit</button>
</form>
''
<hr>
<h2>Hijacking Searching Engine demos</h2>
<h3>Search Reddit</h3>
<form action="https://www.reddit.com/search">
<input type="text" name="q">
<button>Search in Reddit</button>
</form>
<hr>
<h3>Search Google</h3>
<form action="https://www.google.com/search">
<input type="text" name="q">
<button>Search in Google</button>
</form>
<hr>
<h3>Search Youtube</h3>
<form action="https://www.youtube.com/results">
<input type="text" name="search_query">
<button>Search in youtube</button>
</form>
<hr>
<h2>More inputs</h2>
<form action="/words">
<input type="checkbox" name="agree_tos" id="agree">
<label for="agree">I agree </label>
<p>
<input type="radio" name="gender" checked id="male" value="male">
<label for="male">Male</label>
<input type="radio" name="gender" checked id="female" value="female">
<label for="female">Female</label>
</p>
<p>
<label for="country">Please select your country of origin</label>
<select name="country" id="country">
<option value="Argentina">Argentina</option>
<option value="Brazil" selected>Brazil</option>
<option value="Chile">Chile</option>
<option value="Canada">Canada</option>
<option value="Denmark">Denmark</option>
<option value="Germany">Germany</option>
</select>
</p>
<p>
<label for="cheese">Amount of cheese</label>
<input type="range" name="cheese" min="0" max="10" step="1" value="1" id="cheese">
</p>
<p>
<label for="comments">Please leave any comments</label>
<br>
<textarea name="comments" id="" cols="30" rows="5" placeholder="Type your comments in here"></textarea>
</p>
<button>Submit</button>
</form>
<h2>Validation Demo</h2>
<form action="">
<p>
<label for="firstName">First Name</label>
<!--First names must be provided -->
<input type="text" name="FirstName" id="FirstName" required>
</p>
<p>
<label for="username">Username</label>
<!-- Usernames must be between 5 and 25 characters long-->
<input type="text" name="username" id="username" required minlength="5" maxlength="25">
</p>
<p>
<label for="password">Password</label>
<!--Password must be filled-->
<input type="password" name="password" id="password" required >
</p>
<p>
<label for="email">Email</label>
<!--Emails must be follow the 'email pattern' by having an '@' character, for example-->
<input type="email" name="email" id="email" required>
</p>
<br>
<button>Submit</button>
</form>
</body>
</html>