in reply to My cgi nonsense.

CGI.pm should solve most of your problems.