<?php
include('koneksi.php');
include('common/header.php');
if (isset($_POST['kirim'])) {
$nama = $_POST['name'];
$hp = $_POST['phone'];
$email = $_POST['email'];
$comment = $_POST['comment'];
}
$input = mysql_query("INSERT INTO komentar VALUES('','$nama','$comment','$email','$hp')") or die(mysql_error());
if ($input) {
header('Location: form_comment.php');
} else {
echo 'gagal mengirimkan komentar';
header("location:form_comment.php");
}
include 'common/footer.php';
?>