This is truely a CGI question. At some convinient point, this should be moved to the CGI forum. But, since the post is here already.....
Another approach,
Install Perl on your local box.
Install Apache on your local box (
- look in the 'httpd.conf' file for the locations of your 'server root' and 'scriptalias'
directories. The server_root is where you put dirs containing static html and
the scriptalias is where you put your cgi code. If you have trouble getting the CGI
stuff to work, check the apache docs. There should be a cgi howto at -
/Program Files/Apache Proup/Apache/htdocs/manual/howto/cgi.html or
some similar path. It addresses how to get CGI stuff going.
Get that much working. There is a faq452-653 in the CGI forum with some very simple examples.
Then, you can either write your Perl/CGI code to know pay attention to which host it is on, or, just write your code to run on your local box and, once it works, tweak the paths and such and move it to the server.
It is all free and waiting for you to learn how.
'just my 3 cents...
keep the rudder amid ship and beware the odd typo