$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 =
statement?
Paul
On 2/21/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> if (isset($submit))
> {
> //vaildation code
> }
> else
> {
> //webpage
> }
> [/s
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
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 message
[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: http://www.php.net/unsub.php
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 val
5 matches
Mail list logo