Menu
? Hello all,
I am looking for a little input here on form security and validation.
I am working on my first PHP/MySQL site with a LOT of forms of one type or another and as about 90% of them feed back to the database. So I have two questions I hope you can help me out on…
can I use a class (I’ve never used one before) to do most of the work? i.e.
strip_tags()
strip_slashes()
allow only [A-Z], [a-z], [0-9]
[- _ @ : ; , .]
and anything else you can think of to make forms more secure???
Secondly can I do something similar, maybe including javascript to validate required fields?
Many thanks
Mouse