Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Php email validation

  1. #11
    Join Date
    Mar 2011
    Posts
    2,145
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    Thanks for your suggestion traq!
    So, how do I actually use it?
    Like this -
    Code:
    if(checkemail($email)) {
    	echo 'yes';
    } else {
    	echo 'no';
    }
    ? I'm sorry, but I've never really used php functions...

  2. #12
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    yeah, though you probably won't be echoing anything right then. Maybe more like
    PHP Code:
    //  . . .

    if( !checkemail$_POST['useremail'] ) ){
        
    /*  throw an error  */
    }

    //  . . . 

  3. #13
    Join Date
    Mar 2011
    Posts
    2,145
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    Thanks for that traq! (the echo was just to try and tell if I was doing it right )

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •