perbaikan

parent 3b23cc70
<?php <?php
include 'koneksi.php'; include 'koneksi.php';
$nama_pengirim = $_POST['nama_pengirim']; $nama_pengirim = $_POST['nama_pengirim'];
$email = $_POST['email']; $email = $_POST['email'];
$komentar = $_POST['komentar']; $komentar = $_POST['komentar'];
$query = mysqli_query($koneksi, "INSERT INTO t_komentar VALUES('', '$nama_pengirim', '$email','$komentar', NOW())"); $query = mysqli_query($koneksi, "INSERT INTO t_komentar VALUES('', '$nama_pengirim', '$email','$komentar', NOW())");
if ($query) { if ($query) {
echo "<script>alert('Terimakasih $nama_pengirim telah memberikan sarannya !'); window.location = 'index.php'</script>"; echo "<script>alert('Terimakasih $nama_pengirim telah memberikan sarannya !'); window.location = 'index.php'</script>";
}else{ }else{
echo "<script>alert('$nama_pengirim gagal menginput saran !'); window.location = 'contact.php'</script>"; echo "<script>alert('$nama_pengirim gagal menginput saran !'); window.location = 'contact.php'</script>";
} }
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment