1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

create form example

This commit is contained in:
Gorm Casper
2018-07-04 17:12:33 +02:00
parent 250fc6eaf1
commit 8c7a0ab29b
5 changed files with 175 additions and 35 deletions

39
form/static/form.html Normal file
View File

@ -0,0 +1,39 @@
<!doctype htmtl>
<html>
<head>
<meta charset=utf-8>
<title>Forms</title>
</head>
<body>
<h3>Will hit handle_post_1</h3>
<form action=/post1 method=POST>
<label>
Name:
<input name="name">
</label>
<button type=submit>Submit form</button>
</form>
<hr>
<h3>Will hit handle_post_2</h3>
<form action=/post2 method=POST>
<label>
Name:
<input name="name">
</label>
<button type=submit>Submit form</button>
</form>
<hr>
<h3>Will hit handle_post_3</h3>
<form action=/post3 method=POST>
<label>
Name:
<input name="name">
</label>
<button type=submit>Submit form</button>
</form>
</body>
</html>