Hello All, I have a form which has 4 dropdowns and 3 text boxes..Once the user enters the data and hits "Submit", the data is stored in mysql.
Do i need to massage data for removing special charaters and stuff? Please advice!
Thanks!
d40sithui
8:04 pm on Jun 17, 2008 (gmt 0)
while i've never heard of "data massage", you certainly do not want to store it into the db before filtering and checking the data to see if it's what you would want. for example, if the field expects is a number, make sure it is a number and nothing else. furthermore, you will need to make the variable "safe" for your db by using a combination of at least trim(), htmlentities(), and mysql_real_escape_string();