-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforms-get-post.html
More file actions
58 lines (58 loc) · 2.16 KB
/
forms-get-post.html
File metadata and controls
58 lines (58 loc) · 2.16 KB
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
<html>
<head>
<title>GET versus POST</title>
<meta name="author" value="Joe Casabona" />
</head>
<body>
<h1>With GET:</h1>
<form name="getvpostGET" method="GET" action="process.php">
<div>
<input type="text" name="name" placeholder="Name" />
</div>
<div>
<input type="email" name="email" placeholder="E-Mail" />
</div>
<div>
<input type="password" name="password" placeholder="Password" />
</div>
<div>
<select name="fav_movie" placeholder="Movie">
<option value="" selected disabled> -Choose a moive- </option>
<option value="Star Wars">Star Wars</option>
<option value="Lord of the Rings">LoTR</option>
<option value="Harry Potter">Harry Potter</option>
</select>
</div>
<div>
<p>Your message:</p>
<textarea name="message" placeholder="Put your message here"></textarea>
</div>
<div>
<input type="submit" name="submit_GET" value="Search" />
</div>
</form>
<h1>With POST:</h1>
<form name="getvpostPOST" method="POST" action="process.php">
<div>
<input type="text" name="name" placeholder="Name" />
</div>
<div>
<input type="email" name="email" placeholder="E-Mail" />
</div>
<div>
<input type="password" name="password" placeholder="Password" />
</div>
<div>
<p>Your message:</p>
<textarea name="message" placeholder="Put your message here"></textarea>
</div>
<div>
<input type="submit" name="submit_POST" value="Search" />
</div>
</form>
<form name="search-form" method="GET" action="process.php">
<input type="text" name="search-term" />
<input type="submit" name="submit_search" value="Search" />
</form>
</body>
</html>