"Nothing is forever except Change"
OCJP 6 (93%)
pramod krishnamurhty wrote:i have been told it is possible and it is done in one of the projects.
OCJP 6 (93%)
pramod krishnamurhty wrote:validating phone number or email id in web applications
Pat Farrell wrote:
pramod krishnamurhty wrote:validating phone number or email id in web applications
For email addresses:
What do you mean by "validating" here? Just that the format is proper? That the email host exists? or that there is a person who receives the email?
Your example of common usage answers the third, and its the only way that I know of to address the third question.
Look for an RFC822 parser to address the first.
For phone numbers, I have no clue what you are really asking.
"Nothing is forever except Change"
pramod krishnamurhty wrote:
Pat Farrell wrote:
pramod krishnamurhty wrote:validating phone number or email id in web applications
For email addresses:
What do you mean by "validating" here? Just that the format is proper? That the email host exists? or that there is a person who receives the email?
Your example of common usage answers the third, and its the only way that I know of to address the third question.
Look for an RFC822 parser to address the first.
For phone numbers, I have no clue what you are really asking.
validating here is not the format. that is very easy using javascript. the task is to check whether the mail id actually exists or not. i asked the person for guidance. but he said me "to explore on your own" . thanks for replying
"Nothing is forever except Change"
Snehal Bachchhav wrote:Hi check this ....
JS Code to check mobile number
pramod krishnamurhty wrote:
validating here is not the format. that is very easy using javascript. the task is to check whether the mail id actually exists or not.
OCJP 6 (93%)
Snehal Bachchhav wrote:Hi check this ....
JS Code to check mobile number
if(mobilenoFlag=='true'){
mobilenumber=document.getElementById('mobilenumbertxtbox').value;
if(mobilenumber=='')
{
alert("Please Enter Mobile No.");
return;
}
//if(isNaN(mobilenumber))
//{
//alert("Please Enter Mobile No Correctly.");
///return;
//}
//if(mobilenumber.length !=10)
//{
//alert("Please Enter 10 digit Mobile No .");
//return;
//}
}else{
mobilenumber='-';
}
if(emailidFlag=='true'){
emailid=document.getElementById('emailidtxtbox').value;
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if(reg.test(emailid) == false)
{
alert('Invalid Email Address.');
return ;
}
if(emailid=='')
{
alert("Please Enter Email_id.");
return;
}
}else{
emailid='-';
}
"Nothing is forever except Change"
Bear Bibeault wrote:Please use bold text sparingly for emphasis when posting, rather than for entire posts. It makes posts hard to read and less likely to generate responses. I have adjusted your topic for you.
"Nothing is forever except Change"
Lorand Komaromi wrote:
pramod krishnamurhty wrote: the task is to check whether the mail id actually exists or not.
Take a look at this!
"Nothing is forever except Change"
pramod krishnamurhty wrote:
Lorand Komaromi wrote:
pramod krishnamurhty wrote: the task is to check whether the mail id actually exists or not.
Take a look at this!
thanks , just now i saw the site. it seems very interesting .hope it will solve my problem
"Nothing is forever except Change"
pramod krishnamurhty wrote:validating here is not the format. that is very easy using javascript. the task is to check whether the mail id actually exists or not.
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|