function validate(form_id,email) {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.forms[form_id].elements[email].value;
if(reg.test(address) == false) {
alert('Invalid Email Address');
return false;
}
}
Search found 3 matches
- Mon Mar 14, 2011 4:25 pm
- Forum: Javascript
- Topic: email validation
- Replies: 1
- Views: 547
- Mon Mar 14, 2011 4:19 pm
- Forum: Javascript
- Topic: Ajax Rating
- Replies: 1
- Views: 586
Re: Ajax Rating
$.post('rating.php?value="+a+"ID="+id'");
- Mon Mar 14, 2011 4:10 pm
- Forum: PHP - Code
- Topic: Saving Checkboxes
- Replies: 4
- Views: 281
Re: Saving Checkboxes
Thanks for taking the time to discuss this, I feel strongly about information and love learning more on
this. If possible, as you gain expertise, It is extremely helpful for me. would you mind updating
this. If possible, as you gain expertise, It is extremely helpful for me. would you mind updating