HTML and CSS Reference
Figure 7-6. Survey form presented to users
As you can see, the survey form consists of two sections: User Info and Survey Questions. The User
Info section captures user details such as First Name, Last Name, and Email. The Survey Questions section
displays a list of survey questions and their answer choices. The survey questions as well as the choices are
fetched from a SQL Server database ( SurveyDb ). As users start filling out the survey form, their input is
stored in local storage. When they complete the survey and clicks the Submit Answers button, the user
details and survey answers are sent to the server using jQuery $.ajax() method and stored in a database.
The SurveyDb database contains four tables: Questions , Choices , Results , and Users . Their purpose is
listed in Table 7-3.