It looks like you're trying to run before you can walk. Please read the CGI tutorials in the Tutorials section for lots of useful information. You have to have the server set up correctly (e.g. the correct file associations) before the CGI magic can happen.