This is a discussion on "Help with email validation" within the Flash & Multimedia Forum section. This forum, and the thread "Help with email validation are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help with email validation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Help with email validation
Hi there. I need help with my email validation, to tell the user if they have entered is the correct syntax for an email address.
heres what ive got so far: email_txt.restrict = "a-z_.@0-9"; email_txt.maxChars = 40; status_txt.text = ''; submit_btn.onRelease = function() { var email = email_txt.text; // are all the fields filled? if (email == '') { status_txt.text = "Enter Your Email"; return; } // yes, all fields filled sendEmail(email); // sending data... status_txt.text = "Processing..."; // prevent submitting again by disabling the button this.enabled = true; }; function sendEmail(email) { var myData = new LoadVars(); myData.email = email; myData.onLoad = function(ok) { if (ok) { status_txt.text = this.message; } else { status_txt.text = "Try Again Later"; } submit_btn.enabled = true; }; myData.sendAndLoad('contactform.php', myData, 'POST'); } Thanks in advance |
|
|
![]() |
| Tags |
| email, flash 8, syntax, validate, validation |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP email form not sending email | Kurt | PHP Forum | 1 | Oct 12th, 2007 04:26 |
| Form submits to email via php, but email is blank!!?? | DH1234 | PHP Forum | 2 | Jun 18th, 2007 10:42 |
| PHP Email with Javascript validation | Sabin_33 | PHP Forum | 4 | Dec 23rd, 2006 13:34 |
| date, email and number or character validation | ntgcmlfu | Classic ASP | 5 | Jul 30th, 2006 15:32 |
| Email Address Validation | Smokie | Classic ASP | 1 | Aug 15th, 2003 23:52 |