perbaikan

parent 3b23cc70
<?php
include 'koneksi.php';
include 'koneksi.php';
$nama_pengirim = $_POST['nama_pengirim'];
$email = $_POST['email'];
$komentar = $_POST['komentar'];
$nama_pengirim = $_POST['nama_pengirim'];
$email = $_POST['email'];
$komentar = $_POST['komentar'];
$query = mysqli_query($koneksi, "INSERT INTO t_komentar VALUES('', '$nama_pengirim', '$email','$komentar', NOW())");
if ($query) {
echo "<script>alert('Terimakasih $nama_pengirim telah memberikan sarannya !'); window.location = 'index.php'</script>";
}else{
echo "<script>alert('$nama_pengirim gagal menginput saran !'); window.location = 'contact.php'</script>";
}
$query = mysqli_query($koneksi, "INSERT INTO t_komentar VALUES('', '$nama_pengirim', '$email','$komentar', NOW())");
if ($query) {
echo "<script>alert('Terimakasih $nama_pengirim telah memberikan sarannya !'); window.location = 'index.php'</script>";
}else{
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