-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from matt-hickford/forms
Add endpoint /forms/post with simple HTML form that submits to /post
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<!-- Example form from HTML5 spec http://www.w3.org/TR/html5/forms.html#writing-a-form's-user-interface --> | ||
<form method="post" action="/post"> | ||
<p><label>Customer name: <input name="custname"></label></p> | ||
<p><label>Telephone: <input type=tel name="custtel"></label></p> | ||
<p><label>E-mail address: <input type=email name="custemail"></label></p> | ||
<fieldset> | ||
<legend> Pizza Size </legend> | ||
<p><label> <input type=radio name=size value="small"> Small </label></p> | ||
<p><label> <input type=radio name=size value="medium"> Medium </label></p> | ||
<p><label> <input type=radio name=size value="large"> Large </label></p> | ||
</fieldset> | ||
<fieldset> | ||
<legend> Pizza Toppings </legend> | ||
<p><label> <input type=checkbox name="topping" value="bacon"> Bacon </label></p> | ||
<p><label> <input type=checkbox name="topping" value="cheese"> Extra Cheese </label></p> | ||
<p><label> <input type=checkbox name="topping" value="onion"> Onion </label></p> | ||
<p><label> <input type=checkbox name="topping" value="mushroom"> Mushroom </label></p> | ||
</fieldset> | ||
<p><label>Preferred delivery time: <input type=time min="11:00" max="21:00" step="900" name="delivery"></label></p> | ||
<p><label>Delivery instructions: <textarea name="comments"></textarea></label></p> | ||
<p><button>Submit order</button></p> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters