Hi all,
I am specifying a default error page within my site in case of request errors. I cannot include cfml tags within this page and so I am placing my error variables in hidden fields and asking the user to submit these variables to the site administrator for notification of an error. When placing my variable #Error.Diagnostics# in a hidden input type, it is displaying to the user the diagnostic message. I don't want to user to see such information and when I comment the hidden field out, things are working fine. Unfortunately, to correct an error, this is the most important variable I would like to receive via the generated e-mail. My code is below. Can anyone help? Much appreciated! Thanks,
--Jami
I specify the default error template and mailto variable in my Application.cfm file.
Here is the form code in my error template:
<form action="mailerror.cfm" method="post">
We are sorry, but an error has occurred. Please try your request later.<br><br>
Please click below to submit error details to our site administrator.<br><br>
<center><input type="submit" value="Submit error details"></center>
<input type="hidden" value="#Error.MailTo#" name="mailto">
<!--- <input type="hidden" value="#Error.Diagnostics#" name="diagnostics"> --->
<input type="hidden" value="#Error.DateTime#" name="datetime">
<input type="hidden" value="#Error.Browser#" name="browser">
<input type="hidden" value="#Error.HTTPReferer#" name="referringpage">
<input type="hidden" value="#Error.Template#" name="executingpage">
<input type="hidden" value="#Error.QueryString#" name="querystring">
</form>
***Error.Diagnostics is commented out. Would like to pass this to the following page for e-mail submission.
I am specifying a default error page within my site in case of request errors. I cannot include cfml tags within this page and so I am placing my error variables in hidden fields and asking the user to submit these variables to the site administrator for notification of an error. When placing my variable #Error.Diagnostics# in a hidden input type, it is displaying to the user the diagnostic message. I don't want to user to see such information and when I comment the hidden field out, things are working fine. Unfortunately, to correct an error, this is the most important variable I would like to receive via the generated e-mail. My code is below. Can anyone help? Much appreciated! Thanks,
--Jami
I specify the default error template and mailto variable in my Application.cfm file.
Here is the form code in my error template:
<form action="mailerror.cfm" method="post">
We are sorry, but an error has occurred. Please try your request later.<br><br>
Please click below to submit error details to our site administrator.<br><br>
<center><input type="submit" value="Submit error details"></center>
<input type="hidden" value="#Error.MailTo#" name="mailto">
<!--- <input type="hidden" value="#Error.Diagnostics#" name="diagnostics"> --->
<input type="hidden" value="#Error.DateTime#" name="datetime">
<input type="hidden" value="#Error.Browser#" name="browser">
<input type="hidden" value="#Error.HTTPReferer#" name="referringpage">
<input type="hidden" value="#Error.Template#" name="executingpage">
<input type="hidden" value="#Error.QueryString#" name="querystring">
</form>
***Error.Diagnostics is commented out. Would like to pass this to the following page for e-mail submission.