You could pass your error message back and forth as an HTTP post. $myMsg = $_GET['error_msg']; if(isset($myMsg)) { //print my message } else { //process as normal } -----Original Message----- From: Paul Goepfert [mailto:paul.goepfert@xxxxxxxxx] Sent: Tuesday, February 21, 2006 12:53 PM To: php-general@xxxxxxxxxxxxx Subject: How do I output error messages Hi all, I have a web page that I am doing valildation on. I have figured out how to at least get the page to load the page content. What I can't seem to figure out is how to output the error messages to the screen. The validation is being performed on the same page as the form that is being validated. The way the page is setup: if (isset($submit)) { //vaildation code } else { //webpage } Thanks for the help, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php