[PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
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

RE: [PHP] How do I output error messages

2006-02-21 Thread Jay Blanchard
[snip] if (isset($submit)) { //vaildation code } else { //webpage } [/snip] What is $submit? Is it set ever? The problem probably lies in the fact that $submit, whatever it is, never gets set. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] How do I output error messages

2006-02-21 Thread Jeremy Schreckhise
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

Re: [PHP] How do I output error messages

2006-02-21 Thread Richard Lynch
On Tue, February 21, 2006 12:52 pm, Paul Goepfert wrote: $messages = array(); if (isset($submit)) { //vaildation code Each invalid input adds another element to $messages array. //E.G.: if (!isset($_REQUEST['name'])) $messages[] = Name is a required field.; } else { if

Re: [PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
$submit is soppose to be set when the user submits the web form for validation. I am not sure but is there soppose to be a $submit = input type=submit name=submit value=submit statement? Paul On 2/21/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] if (isset($submit)) { //vaildation code