masukan email anda:

artikel baru langsung masuk ke email anda, GRATIS!

Email Validation script

Labels:

This script uses regular expressions to check that a form field contains a valid email address. Note that it won't catch all invalid emails, like most similar scripts. However, for most intents and purposes, this script should serve its purpose well, by rejecting common email typos while leaving room for obscure yet valid emails to pass. Here are some examples of valid email addresses that this script will recognize:

* contact@mydomain.com
* jason+lang@gmail.com
* help@nbc.co.uk
* mary.k.ashley@celeb.com
* george@sub.whatever.mydomain.ca
* edward@42.234.12.345

How to create is:1. go to Blogger.com
2. layout- edit HTML
3.Add the below script to the <BODY> section of your page:

<script type="text/javascript"> /*********************************************** * Email Validation script- © Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for legal use. * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var emailfilter=/^w+[+.w-]*@([w-]+.)*w+[w-]*.([a-z]{2,4}|d+)$/i function checkmail(e){ var returnval=emailfilter.test(e.value) if (returnval==false){ alert("Please enter a valid email address.") e.select() } return returnval } </script> <form> <input name="myemail" type="text" style="width: 270px"> <input type="submit" onClick="return checkmail(this.form.myemail)" value="Submit" /> </form>

The code above includes a sample form where this script validates the email field contained. The form looks like this:

<form>
<input name="myemail&quot; type="text" style="width: 300px"><br/>
<input type="submit" onClick="return checkmail(this.form.myemail)" value="Submit" />
</form>

To customize this script to serve your own form(s), simply change the parts in red above to your own. More specifically, you should first give your email address field a name(ie: name="myemail"). Then, modify the submit button of the form by adding in the "onClick" portion. Remember to change "myemail" to reflect the name of your email address field.

thus submitted by tipsyournet, hopefully this post helpful to us, if there are any questions, please click comments
Postingan Terkait Lainnya :


Related post | Widget by Tipsyournet.blogspot.com
.Ingin artikel seperti ini langsung ke Email anda? Silahkan masukan alamat email anda untuk berlangganan atau Mau dapet tips2 lain yang lebih seru & orang lain belum tahu.

Masukan alamat email anda:

GRATIS!

2 comments:
gravatar
Cassie said...
7/12/2010  

This looks interesting.. The software that you have, or I mean, the code and the software that came with it looks like, I can use it for my new forum site.. Great!

Email validation software

gravatar
Anonymous said...
12/27/2012  

? Resolve to give the training time and support to work You just have to ask On the third day, he drifted off to a painful sleep after the prayers, as usual The Sixth SealNow in this seal judgment God starts to take action! With all the killing that is starting to occur in the above events, God shoots a heavy "torpedo" at the earth
One or the other has to take overIf you just turned your printer on for the first time in a while or if the printer has been standing idle for a while, the printer will run through a series of diagnostic testsAlso a groomer should not use a hand-held hot dryer on a dog drying in a stainless steel cage The first home-based desktop laser printer was released in 1984 by Hewlett-Packard

[url=http://www.newyorkgiantsteamproshop.com/]Victor Cruz Giants Jersey[/url]
[url=http://officialsteelersteamprostore.com/]Antonio Brown Jersey[/url]

Both of these require guessing and detective work Mister To keep it from becoming a national epidemic we simply stop the situation in it's tracks

[url=http://www.seahawksnflprostore.com/]Marshawn Lynch Kids Jersey[/url]

Post a Comment

Powered By Blogger