Code:$badnames = array('bob', 'jim', 'sam');How can i make it check if $username is equal to any of the words in $badnames?Code:if($username == $badnames){ echo("That username is unavailable!<br><br>"); }
Moved by H0BJ0B (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks.





.

I misunderstood what your script was doing. It should work now.
