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

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.
  • Comment on Re^2: 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^3: cgi page calling another cgi when submitting form but does not returns error only to web server log and not to browser.
by marto (Cardinal) on Jul 01, 2014 at 15:59 UTC

    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.

Re^3: cgi page calling another cgi when submitting form but does not returns error only to web server log and not to browser.
by ww (Archbishop) on Jul 01, 2014 at 16:01 UTC

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


    check Ln42!