Hi there guys,
Over the course of my visits and questions here, I've gotten into a particular habit when formatting my form submissions:
$variable = strip_tags (mysql_real_escape_string (strip_mq_gpc (substr ($_POST['variable'], 0, 100))));
(strip_mq_gpc is a custom function that combats magic quotes)
I do this for absolutely every variable, regardless of whether it's a radio button, check box, text box or text area. My thinking is that someone might find a way to submit a value in a different way than I intended.
Am I taking it too far? is the fact that I'm setting the value of $variable to $_POST['variable'] enough to protect the radio buttons and checkboxes?
Any insight would be greatly appreciated.
thanks,
json