Ok, it's late, and my last post for today, but I need to get this right ;-)

<?php
if ($we_found_an_error) {
       $url = 'http://' . $_SERVER['SERVER_NAME'] .
              '/my_error_handler.php?any_parameters_you_need';
       echo '<script language="JavaScript">',
            'document.location.href="', $url, '">',
            '</script>',
            '<hr>',
            'A nasty error has occurred. If you are not redirected ',
            'to the correct page, <a href="',$url,'">click here</a> to',
            'continue (sorry folks)',
              '</script></body></html>';
        exit;
}
// else no error - continue

?>

-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to