I use several forms on my site to send data to MySQL.
Which is the best way / method to validate my form, if I don’t want to users send any script to the database through my forms?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Forget about jQuery. You can’t use anything running on the client to make things safe — the client can always override it.
You need to deal with the data on the server. See How can I prevent SQL injection in PHP? to protect your database and What are the best practices for avoiding xss attacks in a PHP site to protect your pages.