Nov 9, 2004, 1:55 AM
Post #5 of 5
You have a couple of options.
Re: [ACGUY] Working with forms ?
[In reply to]
Server Side Include (SSI) is a technology supported by most modern web servers. In this method, certain HTML files are flagged (often by having a .shtml extension) as requiring extra processing as they are being requested by a browser. You can then put special comments into these files which can be a reference to an external program. That program is run and the results are inserted into the page in place of the comment. The best implementation of this is in Apache.
Alternatively, you can build up all of your page from within a CGI program. The best way to do this is using a template system (I recommend the Template Toolkit). Using this method, your CGI program builds up a data structure containing all of the required data which it then passes to the template processor along with the name of a template. The template processor then expands the template, replacing special tags with the contents of the data structure.
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks