How to I debug my cgiemail form?
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > CGI Scripts
Debugging - Common Errors with CGIEMAIL
Error:
[Page cannot be displayed: HTTP 500 - Internal server error]
Possible solution:
- Reference to the template.txt file cannot be found by the cgiemail script.
- Ensure that the template.txt file exists and is placed in the correct location
- Ensure that the name of the template.txt file does correspond to the name specified in the HTML code (the names are case sensitive)
Error:
[403 No variable substitutions in template]
Possible solution:
- Indicates that the variables reference from the web page does not correspond to the variables created in the template.txt file.
- It can either be that a specified variable in the template.txt file does not exist in the HTML form code page or that it was misspelled. Please note that variable names are case sensitive.
- All variables must be referenced within square brackets.
Error:
[HTTP 404 - File not found]
Possible solution:
- The above 404 page not found error message is generally caused by the success redirect page not being located after submitting the form.
- Ensure coding in your HTML form reference the correct URL for the confirm.html page
- Ensure the confirmation page is uploaded correctly
- Ensure the case of the success page is correct
Debugging - Using CGIECHO in action field
For testing purposes, you may substitute the reference to ‘cgiemail’ with ‘cgiecho’; this will display the feedback form results on your browser screen without actually sending them by email. If you see an error with a number near 500 instead, your ACTION field is probably incorrect.
Should you encounter empty fields in your input fields after submitting the form, ensure that the input fields have the exact same names in the HTML form code as in your template.txt file.
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
