Welcome to the 4D Dynamic Web Page Tutorial! The goal of this tutorial is to help you learn to create dynamic web pages and sites using 4th Dimension. Before you start this tutorial, it is a good idea to have first gone through the previous tutorial in this series - or at least be familiar with the material covered in it. As with the earlier tutorial, this one also assumes you have:
The first step in this tutorial is to launch 4th Dimension. You will be presented with a dialog box, prompting you to either open an existing structure file, or by changing tabs you can create a new one. For this exercise, you will want to create a new one.
You can name the new database whatever you like - "IfAndInclude" is a fine name to use. After you choose a name and click Save, you will be presented with the 4th Dimension Design environment. By now, you should be familiar with 4D's Design environment. If you are not, please go back and complete the earlier tutorials in this series.
Once in the Design environment go the the Edit menu and choose Properties... We will set the Properties to be a bit different than we did in the previous tutorial.

What's different about the settings for this tutorial is that we have specified a Default Home Page: index.shtml. This is the file that will be sent to the web browser when the browser requests the "root" document. For instance, if 4D is running on a host named "www" in the domain "noname.com" and the web browser requested the document at "www.noname.com", 4D would reply by sending back the "index.shtml" file. Likewise, if you had 4D running on your own computer, and you typed "127.0.0.1" into your web browser, this also asks 4D for the "root" document. In previous tutorials, we replied to a request for the root document by creating an On Web Connection method and using the SEND HTML FILE command.
Once you have set the Database Properties to match these, click "OK" and close the dialog box. Then, Quit the 4th Dimension application and re-launch it - the easiest way to make sure that these settings have the desired effect.