Form security. PHP MYSQL -


ok have user form has values submitted database.

my values follows,

$type = $_post['type']; $username = mysql_real_escape_string($_post['username']); $gender = $_post['gender']; $email = mysql_real_escape_string($_post['email']); $password = mysql_real_escape_string($_post['password']); 

i insert them, follows,

mysql_query("insert accounts (username, email, password, gender, type) values ('$username', '$email', '$password', '$gender', '$type')"); 

now totally fine research, , called bobby tables gets me worried security, find out mysql_real_escape_string should used radio buttons well, , find out need define if input value integer , check it?? has got me worried site thought secure, not, can please explain bobby tables , how secure more using standard real escape?

thanks

it's concept of sanitizing data, especially unpredictable inputs public facing.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -