Help with email validation

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 17th, 2007, 10:29
Junior Member
Join Date: Jul 2006
Location: London
Age: 26
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

Reply

Tags
email, flash 8, syntax, validate, validation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 01:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43