Multiple email id validation script

Discussion in 'JavaScript' started by subha rr, Feb 3, 2009.

  1. #1
    Hi...........

    Is there any javascript for validating multiple email id's ....

    Pls help me...

    regards
    subha
     
    subha rr, Feb 3, 2009 IP
  2. BlueToaster

    BlueToaster Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Hi!

    Google is a fantastic tool: it lets you search for simple queries like this. It's really very useful!
     
    BlueToaster, Feb 4, 2009 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    you seem to just get stuck at every step -- your earlier question was 'how do i validate an email address", so once you got that working, we are all here instead...

    since you chose to use the worst solution to your question given earlier (one that does not render itself to pattern programming), i.e.:
    function checkEmail(myForm) {
        if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailAddr.value)) {
            return (true)
        }
    }
    PHP:
    this is a bad example of a function that is hardcoded to a form name and to a emailAddr field value...

    There is helping and there is taking the mickey - good luck with your new task :D
     
    dimitar christoff, Feb 5, 2009 IP