MySQL error when inserting apostrophe
I am using the Validation Toolkit applying client side validations which include validating the company name of the visitor on the registration page. The company form is being validated as Alphanumeric, with &.,'-_" allowed.
I am allowed to click on the Register button, but receive the following error on the next page: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's in the market'' at line 1."
I can remove the company validation requirement and the registration goes through as long as the entry is left blank.
And logically, if I eliminate the company element altogether (unacceptable), the registration goes through.
If I enter Matt's as a company name (validation required or not), I get the error. If I enter Matts, without the apostrophe, I do not get the error. As company names often have apostrophes in them, this is obviously unacceptable.
The apostrophe works in the Billing Name field, and the Password field. All well and good, but I need the company name to work with the apostrophe.
Everything worked on the registration form prior to the validations.
I have attached a zip file containing the Registration page.