Say I have an error handler, that prints out a friendly error message when an error occurs.... That is simple to do, BUT it will print that as soon as the error occurs throughout the script so the result is some of the page being printed and then the error HTML being printed within the page which looks odd..
What I would like is for the function to clear the page completely and THEN write the error HTML so I have a fresh blank page...
How can I do this?
Thanks in advance.
