-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-method.html
45 lines (41 loc) · 1.04 KB
/
post-method.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
<!DOCTYPE html>
<!-- https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_and_retrieving_form_data#on_the_client_side_defining_how_to_send_the_data -->
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Post method example</title>
<style>
form {
width: 420px;
}
div {
margin-bottom: 20px;
}
label {
display: inline-block;
width: 240px;
text-align: right;
padding-right: 10px;
}
button, input {
float: right;
}
</style>
</head>
<body>
<form action="http://localhost:8000/submit-form" method="post">
<div>
<label for="say">What greeting do you want to say?</label>
<input name="say" id="say" value="Hi">
</div>
<div>
<label for="to">Who do you want to say it to?</label>
<input name="to" value="Rheo">
</div>
<div>
<button>Send my greetings</button>
</div>
</form>
</body>
</html>