Hi...
What's the best method of validating input characters? I would like to
prevent users submitting exotic characters (such as those acquired on
Windows Systems by pressing ALT+[keypad number of your choice]) and thought
a way of doing this would be to compare the submitted strings with the array
keys returned by get_html_transl ation_table(HTM L_ENTITIES), but padding this
array out with all the remaining normal keyboard characters.
But... am I reinventing the wheel? Surely there must be an existing function
along the lines of: valid_charset($ str_blah, "iso-8859-01") or somesutch?!
Here's hoping...
Plankmeister.
What's the best method of validating input characters? I would like to
prevent users submitting exotic characters (such as those acquired on
Windows Systems by pressing ALT+[keypad number of your choice]) and thought
a way of doing this would be to compare the submitted strings with the array
keys returned by get_html_transl ation_table(HTM L_ENTITIES), but padding this
array out with all the remaining normal keyboard characters.
But... am I reinventing the wheel? Surely there must be an existing function
along the lines of: valid_charset($ str_blah, "iso-8859-01") or somesutch?!
Here's hoping...
Plankmeister.
Comment