I use a couple of methods, hope these help!:
First, I trim off any trailing spaces, extra characters, etc, and verify the field is filled out with something like:
if (!(trim($form_name)=="" || (trim($form_address)=="")
{
echo your error statement here, etc.
}
To strip of dangerous input, I use something like:
$yourupdate = mysql_db_query($DB, "UPDATE address_record SET address ='".addslashes($address)."',city = '".addslashes($city)."')
...you get the idea...hope that helps!