shadiadiph Posted April 14, 2009 Share Posted April 14, 2009 I am trying to validate a password but it keeps giving me the error Fatal error: Function name must be a string in /home/buyandse/public_html/signup.php on line 86 if ($password=="") { $error.="4|"; } elseif (preg_match($reguser, $password) ==false) { $error.="5|"; } if ($strlen($password)<6) { $error.="6|"; } problem seems to be with the strlen part as if i remove it the page works?? Link to comment https://forums.phpfreaks.com/topic/153985-solved-srtlen-problem/ Share on other sites More sharing options...
trq Posted April 14, 2009 Share Posted April 14, 2009 You need to use strlen not $strlen. Link to comment https://forums.phpfreaks.com/topic/153985-solved-srtlen-problem/#findComment-809362 Share on other sites More sharing options...
shadiadiph Posted April 14, 2009 Author Share Posted April 14, 2009 oops so stupid funny how sometimes I look at something 100 times and can't see the simplest error its obvious thanks Link to comment https://forums.phpfreaks.com/topic/153985-solved-srtlen-problem/#findComment-809364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.