you've just shown us (when invoking the cgi ) you may have a problem with your Apache install... but from your OP, if your remark that "
" means that you bring up the html page without using Apache (by, for example, typing
, you're again trying to execute the cgi without any means (namely, Apache) to do so.