RE: [PHP] about forms with php
| From: | Ford, Mike [LSS] | Date: | Fri, 20 Sep 2002 12:14:19 +0000 |
| Subject: | RE: [PHP] about forms with php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117004@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Meltem Demirkus [mailto:mdemirkus@momentum-dmt.com]
> Sent: 20 September 2002 13:03
>
> 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 ?
Two options:
(1) Leave your onSubmit as is, and put a form.submit in the checkemail
function once you've "validated" the address.
(2) Change the onSubmit to onSubmit="return checkemail(email.value)" and
have checkemail return true or return false according as it does or doesn't
"validate" the email.value passed.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211