jeddi
10-21-2009, 12:33 PM
Hi,
I have the following regex to check if the email is entered correctly
but I think that it should be checking that it ends in .com or .org or .net
or .co.uk or at least .xx ?
From what I can work out this isn't checking that ?
// Test for valid email address.
if ( !ereg( "^.+@.+\\..+$",$N_email) ){
$message1 = "Please enter your correct email address.";
require_once ("index1_fm.php");
exit();
} // endif
Would appreciate some help in tightening up this input check.
Thanks
I have the following regex to check if the email is entered correctly
but I think that it should be checking that it ends in .com or .org or .net
or .co.uk or at least .xx ?
From what I can work out this isn't checking that ?
// Test for valid email address.
if ( !ereg( "^.+@.+\\..+$",$N_email) ){
$message1 = "Please enter your correct email address.";
require_once ("index1_fm.php");
exit();
} // endif
Would appreciate some help in tightening up this input check.
Thanks