Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error.Diagnostics

Status
Not open for further replies.

Jami

Programmer
Jul 18, 2000
54
US
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=&quot;mailerror.cfm&quot; method=&quot;post&quot;>
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=&quot;submit&quot; value=&quot;Submit error details&quot;></center>
<input type=&quot;hidden&quot; value=&quot;#Error.MailTo#&quot; name=&quot;mailto&quot;>
<!--- <input type=&quot;hidden&quot; value=&quot;#Error.Diagnostics#&quot; name=&quot;diagnostics&quot;> --->
<input type=&quot;hidden&quot; value=&quot;#Error.DateTime#&quot; name=&quot;datetime&quot;>
<input type=&quot;hidden&quot; value=&quot;#Error.Browser#&quot; name=&quot;browser&quot;>
<input type=&quot;hidden&quot; value=&quot;#Error.HTTPReferer#&quot; name=&quot;referringpage&quot;>
<input type=&quot;hidden&quot; value=&quot;#Error.Template#&quot; name=&quot;executingpage&quot;>
<input type=&quot;hidden&quot; value=&quot;#Error.QueryString#&quot; name=&quot;querystring&quot;>

</form>

***Error.Diagnostics is commented out. Would like to pass this to the following page for e-mail submission.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top