PHP Code:
There are an error has occured during executing your submission!!!!
");
if(empty($title)) { echo"<li>The <b>Title</b> still blank !!!!</li>"; }
if(empty($penulis)) { echo"<li><b>Your Name</b> still blank !!!!</li>"; }
if(empty($content)) { echo"<li><b>Content</b> still blank !!!!</li>"; }
echo("
If you are saying that the last three error messages show up, the reason is because you never put values into the variables $title, $penulis, and $content. register_globals is turned off. The content of form field "title" is not automatically inserted into $title.
PHP Code:
require("koneksi.php");
$title = '' ;
if( isset( $_POST['title'] )){
$title = $_POST['title'] ;
}
# etc