I operate an online store, using custom software it all works great except when someone types a name such as George O'Neil, the responder doesn't execute or fails.
I've tried addSlashes and I've tried removing ' using a string replace.
Neither has worked, does anyone have any ideas?
4 replies to this topic
#1
Posted 20 December 2010 - 01:55 AM
|
|
|
#2
Posted 20 December 2010 - 04:52 PM
have you tried replacing ' with two of them?
#3
Posted 21 December 2010 - 04:03 AM
I've had a brain storm, I'm going to parse the strings with Javscript before the values are submitted.
#4
Posted 21 December 2010 - 10:27 AM
Use mysql_real_escape_string before inserting the data into the database.
#5
Posted 21 December 2010 - 01:55 PM
Hi Atoz
Clientside validation is not enough. You need to sanitize all the user input on the server-side as well after form submission using php input validation methods an example of which has been given above PHP: SQL Injection - Manual. Remember, all user input is evil :bad:
Clientside validation is not enough. You need to sanitize all the user input on the server-side as well after form submission using php input validation methods an example of which has been given above PHP: SQL Injection - Manual. Remember, all user input is evil :bad:
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









