Here is how we use the <cferror> page:

<!--- error.cfm --->
<H2>We're Sorry</H2>
<cfoutput>
<FORM action="/error2.cfm" method="post">
<INPUT TYPE=hidden NAME=RemoteAddress VALUE="#Error.RemoteAddress#">
<INPUT TYPE=hidden NAME=Browser VALUE="#Error.Browser#">
<INPUT TYPE=hidden NAME=DateTime VALUE="#Error.DateTime#">
<INPUT TYPE=hidden NAME=Template VALUE="#Error.Template#">
<INPUT TYPE=hidden NAME=QueryString VALUE="#Error.QueryString#">
<INPUT TYPE=hidden NAME=HTTPReferer VALUE="#Error.HTTPReferer#">
<INPUT TYPE=hidden NAME=MailTo VALUE="#ERROR.MailTo#">
<textarea cols=50 rows=5 name="Diagnostics">
#Error.Diagnostics#
</textarea><BR>
<input type="submit" value="Notify Administrator">
</FORM>
An error has occurred.  
Please press the Submit button to notify the administrator automatically.
</cfoutput>

<!--- error2.cfm --->
<font size=5 face="arial, helvetica, sans-serif"><b>Your error has been
reported</b></font>
<p>
<font size=2 face="arial, helvetica, sans-serif">
You've experienced an error.  The webmaster has been notified and you don't
need to do anything else.
<p>
Thank You.
<cfmail to="#FORM.mailto#" from="[EMAIL PROTECTED]" subject="ERROR on
MyProject" type="HTML">
        <cfloop list="#FORM.FieldNames#" index="i">
                #i# - #evaluate("FORM." & i)#<br><br>
        </cfloop>
</cfmail>

Alternately, we  use javascript to automatically submit the form on the
first page, but I've found that the flickering page confuses people.  It's
just as easy to ask them to press a button.  That way if they hit the error
again, they can choose not to submit the same error multiple times.

Sharon

At 12:36 PM 5/19/2000 -0400, st�s wrote:
>Why can't the error handler page contain any CFML, just because? Thanks!
>
>---------------------------------------------------------------------------
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
> 

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to