I thought I was being clever by using a standard PHP function to check and see if all the characters in a field were alphanumeric. I never even thought about the fact that I need to allow spaces!!!
Is there a way to make exceptions? Say in one field I wanted alphanumeric, but spaces were allowed…and in another field, I allowed alphanumeric and spaces and commas, periods, exclamations…
Most of what I’m finding online is related to JavaScript, but JS can be turned off…not good for security!
I need to validate on the server side. Thanks.