Yikes. Firstly you should use the CGI module. See CGI Programming in the tutorials section of this site.
In reply to Re^3: Basic script help by marto in thread Basic script help by zealf