in reply to Re: why am i getting script error 500
in thread why am i getting script error 500

sorry for not being clear. actually the page local.cgi shows up the page initially. cgi is working since a hello world program runs fine when viewed on the web. The script 500 error shows up when i hit the go button( submit button in a form on the local.cgi page) the form goes to the local.cgi page itself on submition, since i have specified form action as "". why is this error coming?
  • Comment on Re^2: why am i getting script error 500

Replies are listed 'Best First'.
Re^3: why am i getting script error 500
by CountZero (Bishop) on Jun 22, 2008 at 09:50 UTC
    What happens when you fill in the action attribute with an absolute URI rather than leaving it blank?

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      hey... thanx ... i replaced the blank in action to the url and it works now.... but 1 strange thing is happening now after this change... it is not displaying the contents of frame.txt any more. why so? thanx, ketaki
        Did you also take the earlier advice, re use strict and (though a wise general practice, not necessarily essential here) re param()?

        You might also wish to close the <html> tag, as required by the spec.