|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Trying to get the email validation working so it detects correct sytax... ANy ideas?
Thanks in advance: 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'); } |
|
|||
|
try something like this
//set your email varable Email = your email variable; //if it's a correct email, then send it if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) { //it's got a problem, show an error message here } else { // it's correct, do your sending stuff here }
__________________
____________________________ "surfing isn't just about riding down a wave, but the experience, motion, aesthetics, views, sounds, and sensations." Level Four Storefront |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Email spam bots - display name vs. actual email address | apalmer123@msn.com | Web Programming Discussion Forum | 25 | 09-04-2007 02:13 PM |
| Form validation for the email field, using formmail script. | darren13 | Web Programming Discussion Forum | 1 | 04-28-2006 03:00 AM |
| php email validation | jmdb71 | Web Programming Discussion Forum | 1 | 05-29-2004 03:11 AM |
| Email FLASH | gwsoccer14 | Marketing Strategies Discussion Forum | 0 | 05-25-2004 01:14 PM |
| WC3 validation of flash movie... | bizzydint | Flash Discussion Forum | 5 | 01-28-2004 02:37 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |