RE: [PHP] about forms with php
| From: | Jon Haworth | Date: | Fri, 20 Sep 2002 12:05:28 +0000 |
| Subject: | RE: [PHP] about forms with php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117003@lists.php.net to get a copy of this message | ||
Hi,
> by the way If I remove return false .. script is
> checking the correctness but just after it is going
> to the page "sign_up_ page .php "..I just want
> it to go to the page when the email is correct ..
> Is it possible to manage ?
Yes. You need to have the "return true" or "return false" in the javascript
function that checks the email.
function checkEmail(email)
{
// do the check however you like
// create a variable called "check"
// that's either true or false,
// then do something like:
if (check) {
return true;
} else {
return false;
}
}
HTH
Cheers
Jon