I don't think this is possible because I don't think you could find the
referer of a referer with a script.
The referer  of your 500.cgi script is page b, so ...


Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]

----- Original Message -----
From: "Webmaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 12:27 AM
Subject: Custom 500 Error page


I use a shared hosting account that allows me to customize error messages
using a .htaccess file.   What I would like to have happen is for my custom
script (500.cgi) to be able to send an email to me (at least during beta)
about the problem.  I'm finding that when the user submits data on page A to
page B, which has an error and forwards the user to 500.cgi, I can't pull
data for page B out of the %ENV data.  $ENV{SCRIPT_NAME} returns "500.cgi"
and $ENV{HTTP_REFERER} returns page A.  Is there any way for me to find the
name of the offending script (page B) and the corresponding query string?
Is there something I can add to the .htaccess file that would supply that?

Thanks,

Todd



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to