469,277 Members | 2,370 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,277 developers. It's quick & easy.

user can send as per require email and verify it

I have three fields:

name 1 email 1
name 2 email2
name 3 email 3

User can send as per requirement mail to the user.
If user want send only one email then both name and email will be verified and user want to send two email then both name 1 , 2 and email 1, 2 ,are verified
and if user want to send three then all filed are check out the validation in java script

here is my code:
Expand|Select|Wrap|Line Numbers
  1. if(name==null||name==""||name.match(pat)==" ")
  2. //        {
  3. //            alert("Please enter first name");
  4. //            return false;
  5. //        }
  6. //    if (email.value == ""||email.value.indexOf("@",0)<0||email.value.indexOf(".",0)<0)
  7. //        {
  8. //            alert("please enter  first email address  ");
  9. //            return false;
  10. //        }
  11. //
  12. //              if(name2==null||name2==""||name2.match(pat)==" ")
  13. //        {
  14. //            alert("Please enter second name");
  15. //            return false;
  16. //        }
  17. //    if (email2.value == ""||email2.value.indexOf("@",0)<0||email2.value.indexOf(".",0)<0)
  18. //        {
  19. //            alert("please enter  second email address");
  20. //            return false;
  21. //        }
  22. //
  23. //if(name3==null||name3==""||name3.match(pat)==" ")
  24. //        {
  25. //            alert("Please enter third name");
  26. //            return false;
  27. //        }
  28. //    if (email3.value == ""||email3.value.indexOf("@",0)<0||email3.value.indexOf(".",0)<0)
  29. //        {
  30. //            alert("please enter third email address");
  31. //            return false;
  32. //        }
Apr 10 '10 #1
1 1535
acoder
16,027 Expert Mod 8TB
How do you decide how many emails the user wants to send?
Apr 29 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

40 posts views Thread by ian | last post: by
3 posts views Thread by Thomas Hallgren | last post: by
1 post views Thread by Mike | last post: by
4 posts views Thread by Mike | last post: by
7 posts views Thread by oopsbabies | last post: by
reply views Thread by Steven Cheng [MSFT] | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.