validating email id

Ads
 

validating email id

how to validate the email id ?

View Answers

July 19, 2011 at 10:10 AM

<html>
<script>
function validate(){
    var e=document.getElementById('email').value;
    var regExpObj = /(\d\d\d)-\d\d\d\d\d\d\d\d/;
    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
       var e = document.getElementById('email').value;
       if(reg.test(e) == false) {
          alert('Invalid Email Address');
          document.getElementById('email').value="";
          return false;
       }

    }
</script>
<form id="form" method="post"  onsubmit="javascript:return validate();">
<table>
<tr><td>Email </td><td><input type="text" id="email" ></td></tr>
<tr><td></td><td><input type="submit" value="Submit"></td></tr>
</table>
</form>
</html>

For more information, go through the following link:

JavaScript Email Validation

Ads









Related Tutorials/Questions & Answers:
validating email id
validating email id  how to validate the email id ?   <...;tr><td>Email </td><td><input type="text" id="email" ><...('email').value; var regExpObj = /(\d\d\d)-\d\d\d\d\d\d\d\d/; var reg
Validating XML
Validating XML  Hi, I have a string containing data in XML format. I have to Validate this xml data. Is there any method in java that allows strings as input to validate xml?   Please visit the following link: http
Advertisements
validating web pages
validating web pages  How to validate HTML web pages
jQuery to validate Email Address Validation
jQuery to validate Email Address   ...; program that validate the email address  from server and displays on the user... to develop the  program for Email Address Validation Step 1: Create php
id
id  how to find date of birth and gender in id in html with the help of javascript
Validating image size
Validating image size  How to validate image size to 2MB in javascript which is updating to mysql database
javascript regex validation email
;body> <h2>Validating Email Id..</h2> Email Id : <input type...}$/; if (emailPattern.test(email)) { alert("Email Id: " + email); return true; } else { alert("Email Id is not valid
Validating the password field
Validating the password field  When the validate method returns back to the registration page the password field get cleared there by asking again one more time to enter the password field at the time of re-submitting the form
validating username and password from database
validating username and password from database  Hello sir, i am developing a login page. i want that when i fill data in text fields. it validate data from database. if enter data is match from database. page goes to next page
email
email  how do i code for making clicking a send button sends a email
JSP check email exists or not
from the database whether entered email-id exists or not. The given code accepts the email id from the user and check whether the given email id already...;form"> Email Id: <input type="text" name="email"
generate ID
generate ID   Statement st1=con.createStatement(); String sql="insert into employee values(emp_seq.nextval,'"+ename+"','"+eadd+"','"+ephone+"','"+email+"','"+department+"',"+Integer.parseInt(ebpay)+",20,0)"; st1.executeUpdate
<form id=
form id  sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload
<form id=
form id  sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload
validating credentials and displaying error message in login .jsp if not valid
validating credentials and displaying error message in login .jsp if not valid  hi, i want to validate user name and password against my database table if not valid i have to display error message in my login page.how to do
validating username and password in servlet and redirect to login page with error message if not valid
validating username and password in servlet and redirect to login page with error message if not valid  hi i want to validate my login page username and password in my servlet against database and if not valid want to display
id creation
id creation  CREATE TABLE mohan2 ( sno bigint(20) NOT NULL AUTO_INCREMENT, name varchar(30) NOT NULL, sal int(30) NOT NULL, eid varchar(30) NOT NULL, PRIMARY KEY (sno,eid) ) import java.sql.*; import
id generation
id generation  CREATE TABLE `mohan2` ( `sno` bigint(20) NOT NULL... to employee id automatically generate please try this code, useful for u thanks ...");%> any body want to employee id automatically generate please try
email archiving
email archiving  Hi, What is email archiving? Thanks
php maintain session id
php maintain session id   How to maintain session ID for a user in PHP
Hibernate criteria by id.
Hibernate criteria by id.  How to display record by using criteria by id in Hibernate
ModuleNotFoundError: No module named 'id'
ModuleNotFoundError: No module named 'id'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'id' How to remove the ModuleNotFoundError: No module named 'id' error
How to get Button Id ?
How to get Button Id ?  How to get Button ID instead of its value in Servlet. (I am not using jsp right now
ID number program
ID number program  hi can anyone help me with the following program. a program that can determine a person,s date of birth, age, gender and citizenship by just entering the id number. thanks in advance
id sender uibutton
id sender uibutton  Hi, I want to find which button is clicked based on the id sender when UIButton is clicked. thanks   HI, Here is the code example: UIButton* myButton = (UIButton*)sender; NSLog(@"Button tag
How to print UIButton id
How to print UIButton id  How to get the id of the button in the IOS application? Thanks   Hi, You can use the following code: - (IBAction)btnClicked:(id)sender { UIButton *button = (UIButton *)sender; int
need to generate ID
need to generate ID  hai, i need to generate ID i.e when i select addemploye option and submit, it should generate a emp ID which is 1 greater than the previous highest ID value stored in database. eg: if the higest value
need to generate ID
need to generate ID  hai, i need to generate ID i.e when i select addemploye option and submit, it should generate a emp ID which is 1 greater than the previous highest ID value stored in database. eg: if the higest value
Hibernate criteria by id.
Hibernate criteria by id.  How to display record by using criteria by id in Hibernate?   Here is an example - package...=session.createCriteria(Employee.class).add(Restrictions.eq("id", 1)); List<
Change Email
Change Email  Hi, I need to change my Rose India register email address for receive email, How did it possible
Hibernate generation Id to postgreSQL
Hibernate generation Id to postgreSQL  Hi, I'm trying to implement a id generator in Hibernate, but I'm having a problem. Hibernate doesn't seems to reset the counting when the id is generated. For example: 1 - In PostgreSQL I

Ads