> How do you guys handle events like this? The right solution is to *always* process POST data before sending any data back to the user. Why not just move the form processing code to the top of the script? There is no reason that you need to send the html head section before you do something with the POST data.