Hello all,
I am trying to validate a form field passed back to me by a merchant gateway. They require a lot of error checking and this is one I need a bit of help with.
Characters allowed are UTF-8 encoded characters restricted to:
• uppercase and lowercase alphabetic characters
• numeric characters
• À Á Â Ä È É Ê Ë Î Ï Ô Ù Û Ü Ç à á â ä è é ê ë î ï ô ù û ü ÿ ç
• Spaces
• # $ . , - / = ? @ '
Do I have to set a list of ALL those characters ... and then run a check, confirming that all the characters in the form field are ON that list ?
If I get any characters that are not on that list, like ">" ... I have to produce an error.
I am trying to validate a form field passed back to me by a merchant gateway. They require a lot of error checking and this is one I need a bit of help with.
Characters allowed are UTF-8 encoded characters restricted to:
• uppercase and lowercase alphabetic characters
• numeric characters
• À Á Â Ä È É Ê Ë Î Ï Ô Ù Û Ü Ç à á â ä è é ê ë î ï ô ù û ü ÿ ç
• Spaces
• # $ . , - / = ? @ '
Do I have to set a list of ALL those characters ... and then run a check, confirming that all the characters in the form field are ON that list ?
If I get any characters that are not on that list, like ">" ... I have to produce an error.