That WebSurveyHandler method was fairly long. If you are new to 4th Dimension, it might be beneficial to step through the WebSurveyHandler method as it executes. To do that, go to the 4th Dimension Design Environment and edit the WebSurveyHandler method. You will notice that there is a small margin on the left side of the window; click the mouse anywhere there, and a red dot will appear. This is what is known as a break point.

After you have added the break point, close the method and go back to your web browser. Again, type "127.0.0.1" into the address bar and hit return. Fill out the survey again, and click the Submit button. When you do, you shouldn't get a response. Instead, you will find that 4D's Debugger will have opened:

If you are not familiar with what a debugger does, you should read about it in the documentation. It is important to become comfortable and familiar with 4D's Debugger. It is an excellent tool for trouble-shooting your web applications. In the example screen shot above, the $atNames and $atValues arrays are in the Custom Watch Pane. This allows the developer to see what data the command GET WEB FORM VARIABLES obtained from the HTML form. You can also watch as 4D queries for records, changes values, etc. It is a very useful and powerful tool.
Now you have seen how easy it is to integrate a database with the 4D's Dynamic Web Page technology. Try experimenting with this example, adding features and functionality. You will be surprised at how easy yet flexible 4D's integrated database web technology is.