Jump to content

Recommended Posts

Posted

Hi All,

Sorry to keep posting but i am at a brick wall with a few things and could do with some help :)

 

i have a html contact form which users fill out.when they submit the form it gets sent as an email and also gets inputted into an SQL table. The problem i have is when ever people use special characters such as ' or " we get a syntax error. as soon as they remove this the form sends.

 

How can i prevent this from happening?

Any sort of validation that swaps the special characters for accepted ones?

 

Thanks All

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...