I have a username field in a registration page I am creating. I've done a check to see if the user fills it in, if they don't it spits and tells them to fill it in. Now I want to do a check to see if they have illigal characters including spaces in the username postdata. ie (!@#$%^&*() ":;',./., etc etc
I've had a good search through these forums and google and had a look at ereg but didn't fully understand it.
Just wondering if somebody could point me in a good direction or send a psuedo snippit or similar?
Any help appreciated.
Rob