i am new to perl CGI scripting. i am running apache on localhost as my web server. i tested it with a sample html script on the local host and it works.
i wrote a small CGI script and tried to run it on the local host using apache and it doesnt work. it just prints the entire code on the webbrowser (IE8). my Document root on Apache is "C:\Documents and Settings\Maddy17\My Documents\mywebsite". All my cgi scripts are stored here.
here is the code
my $cgi = new CGI;
#set up the partial header , Content-type
print $cgi->start_html("LOGIN PAGE");
print $cgi->h1("ENTER USERID");
print $cgi->textfield(-name=> "ID");
print $cgi->password_field(-name=> "PASSWD");
print $cgi->submit(-name=> "enter", -value=> "Enter");
print $cgi->submit(-name=> "cancel", -value=> "Cancel");
Please let me know if i am missing something.