Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Forcing legal ASCII characters


Bazza-UK

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...