This chapter covers
- Dealing with text boxes and text areas
- Working with check boxes and radio buttons
- Adding selection lists and buttons to a form
- Using the free Getform service to have form data sent to you
- Crafting a ChatGPT prompt for building an event sign-up page
- Examining and customizing the ChatGPT- generated code
Most web pages—and all the web projects so far in this book—are read-only media, meaning their purpose is to present each visitor with information related to the page’s main topic. Such pages require nothing of the visitor except their time and attention (which are big asks in these overly busy times!).
However, there are plenty of scenarios where you’ll want your page to be more interactive, meaning you ask users to provide you with some information. Perhaps you want to get feedback about your website. Maybe you want to present your visitors with a survey or quiz. Or maybe you want to offer folks a way to sign up for a newsletter or register for an upcoming event. Whatever the reason, you solicit such information by offering a form, which is a special web page object that has fields the visitor fills in and then submits.