note 111817 added to filter.examples.validation

From: Date: Mon, 01 Apr 2013 08:04:22 +0000
Subject: note 111817 added to filter.examples.validation
Groups: php.notes 
Request: Send a blank email to php-notes+get-194283@lists.php.net to get a copy of this message
Hi, please help me to validate email $(document).ready(function(){ $('#email').keyup(email_check); }); function email_check(){ var email = $('#email').val(); if (preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $email)){ $('#email').css('background', '#ffffff url("images/tick.png") no-repeat right center'); $('#email').parent().find('.result').html('<span class="ok">email seems Ok!</span>'); $('#new_register').removeAttr('disabled'); } else { $('#email').css('background', '#ffe5e5 url("images/cross.png") no-repeat right center'); $('#email').parent().find('.result').html('<span class="error">enter correct email</span>'); $('#new_register').attr('disabled','true'); } } ---- Server IP: 69.147.83.199 Probable Submitter: 49.14.247.31 ---- Manual Page -- http://php.net/manual/en/filter.examples.validation.php Edit -- https://master.php.net/note/edit/111817 Del: integrated -- https://master.php.net/note/delete/111817/integrated Del: useless -- https://master.php.net/note/delete/111817/useless Del: bad code -- https://master.php.net/note/delete/111817/bad+code Del: spam -- https://master.php.net/note/delete/111817/spam Del: non-english -- https://master.php.net/note/delete/111817/non-english Del: in docs -- https://master.php.net/note/delete/111817/in+docs Del: other reasons-- https://master.php.net/note/delete/111817 Reject -- https://master.php.net/note/reject/111817 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194283) next »