$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
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:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 12:53 PM
[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
4 matches
Mail list logo