![]() |
| ||
| E-Mail validation Hello all, I'm stuck in a serious problem, I need a code of Email validator in php. It will check whether there is a real email address or not, i.e it should not be "abcd@xyz.com" that means it will check the domain(yahoo.com, gmail.com, aol.com etc..) as well as the user id..... PLZzzzzzzzzzzzzz help me it's realy very urgent............. plzzzzzzzzzzz reply.................. |
| ||
| Re: E-Mail validation this is the code: var m = document.form1.emailid.value |
| ||
| Re: E-Mail validation Plz... check out this url......... I just want this method in php... http://www.coveryourasp.com/ValidateEmail.asp#Result2 |
| ||
| Re: E-Mail validation I've done this way but its not working.... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script language="javascript"> var m = document.form1.emailid.value var cnt=0,spc=0,dot=0; for(var i=1;i<=m.length;i++) { if(m.charAt(i)=="@") cnt++; if(m.charAt(i)==" ") spc++; if(m.charAt(i)==".") dot++; } lnm=m.length if(cnt==0||cnt>1||spc!=0||dot==0 ||lnm<=2 ) { alert("Please Enter Valid E-mail Id "); document.form1.emailid.focus(); return false; } </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link href="Level1_Verdana.css" rel="stylesheet" type="text/css" /> </head> <body> <form name="form1" action="<?php $PHP_SELF;?>" method="post"> <label>Emaiil : <input name="emailid" type="text" id="emailid" /> </label> <input type="submit" name="enter" value="Enter" /> </form> </body> </html> |
| ||
| Re: E-Mail validation i changed your code... its corectly working now: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">error was: you didnt cal any function in your form tag... |
| ||
| Re: E-Mail validation hai u can use this validation code it will accept mail id in the form of aa@aa.aa<body> |
| ||
| Re: E-Mail validation Hi Shanti, ya now its working fine but it still accepting asasasasas@asasasasasa.com I need a validator which will check either it is a real valid mail id or not Thanx 4 rply....... but the problem still not figured out... have a look on the specified url http://www.coveryourasp.com/ValidateEmail.asp#Result2 |
| All times are GMT -4. The time now is 12:16 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC