whenever I want to generate an HTML page, I use templating.
I was working on a submission form for the company I work at, they want the user to fill in some fields, then click proceed, a new page is generated to fill his company information, all what he entered previously should submit too.
so I made an external template .html file, the script reads the file, and checks the lines for comments, like <!--somevalue--> and substitutes them with some value entered previously..
this way I can save myself the trouble to debug all the javascript, or coding that is supposed to be generated with the page.
how may times have your script generated an error for that un-escaped @ in the e-mail address written in the generated page?
I say definitly go with CGI, but when it comes to big chunks of static html... template.
________________________
Chady |
http://chady.net