Setting maxlength="" in HTML has zero security, you could still receive a longer input then what you had defined as max.
Strlen works perfect...what bad experience do you have with it?
And, I believe intval() is not neccessary in PHP. Strings and numbers are interchangable if I remember correctly.



Reply With Quote

