posted 21 years ago
For a form field, if users input " or ', we will have trouble when storing them into database. What is the standard way to solve this cases?
for me, this only solution I can think of is to read every field's input , if it have ' or " character, it will be replaced by \' or \" , isn't it? I wonder if we have better way dealing with that.
Thanks everyone who helped me