Build an HTML Form That Posts
Create a form whose action targets a route.
Why Forms Matter
An HTML form is how a browser collects typed input and hands it to your server. It is the front door for almost every user action. 📝
The form Element
Everything starts with a form tag. The browser bundles whatever fields live inside it and sends them together when the user submits.
<form>
<!-- fields go here -->
</form>All lessons in this course
- Build an HTML Form That Posts
- Read and Default Query Parameters
- Validate Required Fields by Hand
- Redirect After Post (PRG Pattern)