$variable=$_POST['datoformulario']; mysql_query("insert into tabla (campo) values ('$variable')") or die ("error");