in reply to grade calulator coding problem

Thanks for all your help guys. I learned more about perl today than I thought I would but it still isn't working. I am still getting the "internal server error screen"I tried all of your advice separately and tried the code Netwallah had written but still getting the error screen even though it runs fine in the shell -konsole I am going to try some simpler scripts and try to work my way through to see if I can find the problem. thanks again for the help I appreciate any help I can get.

Replies are listed 'Best First'.
Re^2: grade calulator coding problem
by NetWallah (Canon) on Mar 07, 2011 at 03:48 UTC
    "Internal server error" is a web server error message. More detail will be in the web server logs - typically, this will be in /var/log/httpd/error.log .

    The most common cause is that you forgot to set the script permission to 755, or did not place it in an appropriate cgi-bin directory.

         Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

      Thanks!! I found the error log and I almost understand what it says I assume it has something to do with the last line of the script. +Sun Mar 06 22:58:45 2011 error client 127.0.0.1 malformed header from script. Bad header=

      • The letter grade is C: calc.cgi, referer: http://localhost/ I am still using the script you wrote because its very well written. I will type up my own version of it once I get this one working I just learn better if I have a working copy to start with then I take it and learn how it works. anyway I am going to mess with the last line and see if I can get it running. you have been very helpful thank you

        I got it!!! it was missing the "HTML content type" line so it works now thanks for your help I just need to change a few things that I wanted to add to it. thnx again.