Bazza-UK Posted March 18, 2004 Share Posted March 18, 2004 Hi there, I wondered if anybody can help me with this one. No doubt it simple, but I just cannot get my head around it. Basically, we are using Prot X Form payment processor, and because we use the customers name to form part of the transaction ID, we have to adhere to their limitations. Now, they do not allow non ASCII characters on their database and so therefore, we have had a few problems when customers are from abroad and have non-ASCIII characters in their name. Whilst OSC happily accepts non-ASCII characters in the customers name, Prot X unfortunately is not so flexible. Therefore, what I need to do, is limit the customer so that they can only enter ASCII characters for their name. This will stop them from using non-ASCII characters, which are then being passed to Prot X. So, to summerise, I need to restrict the customers first name and surname to letters A-Z only, without any numbers or non-ASCII characters. Can anybody help with this? Im guessing its something similar to the way the email field verifies whether the format of the email is good or bad. Please help, im pulling my hair out!! Its going to be something simple im guessing... but then im no JS guru! Thanks in Advance Baz :D Link to comment Share on other sites More sharing options...
Bazza-UK Posted March 19, 2004 Author Share Posted March 19, 2004 Ok, I have found this: Javascript Link Would this help anybody to assist me? Im a total novice to Javascript :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.