in reply to How to load a cgi script when the webpage loads

To use server side includes just add this code to your page:
<!--#exec cgi="/cgi.cgi" -->
make sure your server can handle them and name your page with the .shtml ending.