Add the following to main.htm immediately after the <script> tag. DisplayRow takes the values from the database and displays them in the web form. FetchForm takes the current values in the web form and makes them available to the database code.

In the following procedure, the call to insertBegin puts the application into insert mode and sets all values in the current row to their defaults. For example, the ID column
receives the next autoincrement value. The column values are set and the new row is inserted.