Alrite guys, this is pretty basic, and im sure there's an easy way to do it, i just can't seem to figure it out.
I've got a form that will have users search for certrain criteria on a database, this part is fine. Where my problem lies is in the data validation. On my form, i've got a text input for someone's name, and obviously, I don't want there to be any numbers allowed in the input.
I've tried it using combinations of strval() and intval() but that only works if the user enters ALL numbers, not if the string contains some numbers and some letters.
I was thinking of using preg_match() but I can't seem to write a good regular expression, if anyone has any tips for this, that'd be great.