In this chapter, we're going to improve our prototype by adding some e-commerce essentials. Forms will be central to everything we build next. While we saw some interactive UI elements in the previous chapters, forms really open up a whole new level of interaction by providing the ability to generate user requests, and to submit and collect user input.
It will be necessary to learn a few other things along the way, including form validation and amp-mustache templates. We'll also need to set up some server-side code, to handle submissions and state. This is not strictly AMP, so we'll keep this to a minimum.
In particular, in this chapter, we'll see how AMP's form support can be used to enhance the user experience by exploring the following features:
- Sign-up forms
- XHR/AJAX form submissions
- Form validation
- Product search forms...