In this chapter, you learned how to create a form and its necessary attributes and how it works. We saw the importance and usage of the method
and action
attributes of a form. We created a page to add a new list and multiple items in that list with a html form. You also learned how to add items to the form through JavaScript dynamically using a simple dummy template. We saw how we can handle user form data on the backend. You also learned about implementing validations and the types of validations.
In the next chapter, you will learn how to connect and communicate with the database in Sinatra.