$title = stripslashes($_POST['title']);
$text = stripslashes($_POST['text']);
changes to
if (get_magic_quotes_gpc()) {
$title = stripslashes($_POST['title']);
$text = stripslashes($_POST['text']);
} else {
$title = $_POST['title'];
$text = $_POST['text'];
}
$title = mysql_real_escape_string($title);
$text = mysql_real_escape_string($text);
the functions can be looked up in the manual 😉