Page 1 of 1

help with ctype_alnum

Posted: Tue Oct 01, 2002 8:14 pm
by mydimension
i have a form that checks the given username for validity using the following if condition:

Code: Select all

(($_POSTї'username'] == "") || (strlen($_POSTї'username']) < 6) || (strlen($_POSTї'username']) > 16) || ctype_alnum($_POSTї'username']))
in the form i have tried inputing "mydimension" so that $_POST['username'] = "mydimension". before i put in the ctype_alnum function this condition would return true. now with the ctype_alnum function it returns false. any ideas?

Posted: Tue Oct 01, 2002 8:47 pm
by mydimension
nevermind, i didn't negat the ctype function. feel free to hand me the Darwin award.