Jump to content

[SOLVED] Code line check


acctman

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.