if ($_POST["posted"] == 1) {
if(!$title) {
die("<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לכתוב כותרת!\"); history.go (-1);</script>");
}
if(!$poster) {
die("<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לציין את שם הכותב!\"); history.go (-1);</script>");
}
if(!$text) {
die("<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לציין תוכן!\"); history.go (-1);</script>");
}
include "config.php";
mysql_query("INSERT INTO `topics` VALUES ('','$title','$poster','$text','$image','$date')") or die("שגיאה");
?> המאמר נשלח בהצלחה
<?php
}
?> <body style="font-family: Arial">