acctman Posted July 22, 2008 Share Posted July 22, 2008 I'm not getting any errors when I try and test this coding, so can someone look it over and tell me if its correct. /* If sql result is empty, the NewUser name has only a-z,0-9_- characters and the length is more than 2 characters */ if (($result == "") && (preg_match('/^[a-zA-Z0-9_\-]+$/', $_POST['NewUser']) == True) && strlen($_POST['NewUser']) > "2" ) { //some other stuff } Link to comment https://forums.phpfreaks.com/topic/116078-solved-code-line-check/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.