Re: Html forms not working-cgi prob?
First, your html is a little messed up. You have the submit image after the closing <form> tag, so that won't submit. Also, you specify the form's action as:
http://plm.pcriot.com/home/reeree/pu.../submit_kos.pl
You need to change that to '/cgi-bin/submit_kos.pl'. Lastly, you use the names 'Class' and 'Level' in the html, but you use 'class' and 'level' in the script.
And as for the script, you're missing the 's' in "use warnings;" for one. Second, you need to change
open(outputfile,"/kos.txt");
to
open(outputfile,">../kos.txt");
to specify that you want to rewrite the file and to navigate out of the cgi-bin directory. And you should also change the redirection to:
print "Location: http://plm.pcriot.com/plmkos.html\n\n";
Those changes *should* fix it.
"But you have access to the greatest source of knowledge in the universe."
"Well I do talk to myself sometimes, yes."
"I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"