bluebit, your code is protected given that you are protecting against SQL Injection, but you are not protected from things like XSS (Cross Site Scripting). This is the ability to pass Javascript to this field, and then when you output it, you output Javascript.
, strip_tags() www.php.net/strip_tags, HTML ,
, , $_POST,
$cleanInput = cleanPost($_POST['contact']);
function cleanPost($item) {
return mysql_real_escape_string(strip_tags(stripslashes($item)));
}
PHP filter_var(). , HTML .., strip_tags()
Hopet this , SQL Injection XSS.