Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a list to validate a form field

Status
Not open for further replies.

5474N

Programmer
Jul 13, 2005
11
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top