Date: 10/11/01
- Next message: _lallous: "[PHP] Re: MySQL: AVG in SELECT"
- Previous message: Niklas Lampén: "RE: [PHP] how to read posted data?"
- In reply to: Sharat Hegde: "[PHP] Error Handling with Netscape"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
try a javascript work around, which will clear the page and write the error
(when it occurs)
<script language="JavaScript">window.onload = new
Function('document.close();document.open();document.write("error occured:
msg msg msg!");');</script>
"Sharat Hegde" <shah <email protected>> wrote in message
news:30402B4CB8C7D311A3C600C04F1513BCB4F611 <email protected>
> Hello,
>
> In my PHP program, I have some processing to display items in a loop which
> is interspersed inside the Body of the HTML page. While doing this
> processing, if an error message comes up I "die" with the error message
> (Displays error message and quits).
>
> The error handling works fine on Internet Explorer but shows a blank page
in
> Netscape. I figured out that this is probably because all the HTML tags
do
> not have corresponding end tags. So I tried outputting "</body></html>"
> before the "die" statement in the error handler. This did not seem to make
a
> difference as there are still some open table tags, etc, ... which do not
> have correponding end tags.
>
> How do I get the error message to print on Netscape? Doing all the error
> handling before the HTML starts is too much of a problem as I have to
> duplicate code.
>
> Regards,
> Sharat
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: _lallous: "[PHP] Re: MySQL: AVG in SELECT"
- Previous message: Niklas Lampén: "RE: [PHP] how to read posted data?"
- In reply to: Sharat Hegde: "[PHP] Error Handling with Netscape"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

