in reply to cgi page calling another cgi when submitting form but does not returns error only to web server log and not to browser.

Without knowing what the errors are there's little anyone can do to help. Like going to the doctor but not telling them any of your symptoms. Provide the details needed for others to understand your system/setup. Show the errors you find in the logs.

"Also , if i want to do it using a module instead of cgi , how to do it. Should I be loading cgi modules within that module and then do it or is there any better way?"

If I understand you correctly you're currently using CGI. If I were starting anything new (web based) I'd use Dancer, other modern frameworks exist. Dancer has extensive documentation and example code.

When posting here links are displayed by default, including How do I compose an effective node title? and How do I post a question effectively?. Please read and understand them at least once.

Update: Since you're using CGI Tutorials->Web Programming->CGI Programming->Ovid's CGI Course is worth reading, since you need help debugging your cgi scrips.

  • Comment on Re: cgi page calling another cgi when submitting form but does not returns error only to web server log and not to browser.

Replies are listed 'Best First'.
Re^2: cgi page calling another cgi when submitting form but does not returns error only to web server log and not to browser.
by chidori (Novice) on Jul 01, 2014 at 15:57 UTC
    Thanks for the response. The second cgi script inserts data into db. Lets say i mess the insert query. So the script would ideally break with an error. But the problem is error is thrown to the server error log. But parent cgi script which called this db inserting cgi script is not aware of the error that happened.

      Then you should look at the web server (you don't say which) error logs. For Apache this is error_log. Failing that if you read the link I gave you specifically for learning how to use CGI you'll find out how to dump errors in the browser.

      Still not useful info: post code and error messages, verbatim. Anything else we might do is navel-gazing and WAGs.


      check Ln42!