netneurones
02-23-2002, 10:39 AM
I am a complete CGI newbie. I'd like to know how you can integrate a CGI script to a template (say dreamweaver) or vice versa using cut and paste techniques. Is this possible and feasible? Are there any alternatives? Other possibilities could be to have a frame, but I would consider it last. Free scripts exist but they do not allow you seamless integration with your existing template. Am I right?
ASPCode.net
02-23-2002, 12:19 PM
That so much depends on how the CGI scripts are written.
Some scripts have the layout hard-coded where the CGI script generates the HTML tags through PRINT commands.
Other uses a template based approach, where the script opens a html-file and replaces some tags with CGI-generated data.
So, for some scripts you will see it's close to impossible, while for some it would be easier.
Oh, now I'm talking about existing scripts, which you have downloaded from somewhere.
If you are gonna write the scripts yourself from scratch then use the template-based approach. EDIT: check out http://search.cpan.org/doc/JMOORE/CGI-FastTemplate-1.09/FastTemplate.pm
netneurones
02-24-2002, 12:49 AM
But then, what kind of scripts are pre-installed at some WebHosting places?