The code I was trying was:
elseif (in_array($input->post->signup_name, $users)) {
$output = "<h6 class='error'>Unfortunately that username is taken, please try another.</h6>";
}Either there is a problem with my if statement (can $users be used as an array in this way?) or PW is finding the duplicate before my check even takes place as when submitting the form I get the following error:
"Error exception: Duplicate entry"
Would appreciate it if anyone has run into similar problems. Thanks!













