<?php
include"koneksi_server.php";
$nis=$_POST['nis'];
$nama=$_POST['nama'];
$kelas=$_POST['kelas'];
$jurusan=$_POST['jurusan'];
$perintah="insert into tb_siswa values('$nis','$nama','$kelas','$jurusan')";
$query=mysqli_query($koneksi,$perintah);
if($query)
{ echo"<script>alert('Berhsil');parent.location=;'index.php';</script>"; }
else
{ echo"<script>alert('Gagal')';parent.location=;'index.php';</script>"; }
?>