Using HTML templates


show more Using HTML templates provides you with in-depth training on Developer. Taught by Bill Weinman as part of the CGI Essential Training show less
please wait ...

Using HTML templates

The HTML that creates this contact form, with all its form elements and such, actually lives in a template file on the server. That template file is read by the CGI application. It has tokens in it that are replaced by elements that are created by the CGI application and that's what makes everything work the way that it does. So let's take a look at this process and see how it works and why we do it this way. Here is my editor and it's connected to the server and I am going to open this first.html. This is in the html directory under the bw-contact directory and that's where these template files live.

So these are all template files. I will go ahead and open first.html. Now, this file is actually read not directly by the server but it's read by the CGI application. And as the CGI application reads this file, it goes ahead and replaces things with values that it creates itself for various reasons, like for instance here is a place for the CONFIRM_ERRORS. If you try to subm...

Using HTML templates
Video duration: 2m 36s 1h 33m Beginner

Viewers:

Using HTML templates provides you with in-depth training on Developer. Taught by Bill Weinman as part of the CGI Essential Training

Subjects:
Developer Web
Software:
CGI
Author:
please wait ...