RE: [PHP] How do I output error messages
| From: | Jeremy Schreckhise | Date: | Tue, 21 Feb 2006 19:43:55 +0000 |
| Subject: | RE: [PHP] How do I output error messages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230825@lists.php.net to get a copy of this message | ||
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@gmail.com]
Sent: Tuesday, February 21, 2006 12:53 PM
To: php-general@lists.php.net
Subject: [PHP] 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