<?php 
	// koneksi database
	include "../koneksi.php";

	// menangkap data yang di kirim dari form
	$NIK	= $_POST['NIK'];
	$KS		= $_POST['BPJS_KESEHATAN'];
	$TK		= $_POST['BPJS_TK'];
	$GOL	= $_POST['GOL_DARAH'];
	$NPWP	= $_POST['NO_NPWP'];
	$NOREK	= $_POST['NO_REKENING'];
	$NAMAREK= $_POST['NAMA_PEMILIK_REKENING'];
	$BANK	= $_POST['NAMA_BANK'];
	

		$a="UPDATE personal SET BPJS_KESEHATAN = '$KS', BPJS_TK = '$TK', GOL_DARAH = '$GOL', NO_NPWP = '$NPWP', NO_REKENING = '$NOREK', NAMA_PEMILIK_REKENING = '$NAMAREK', NAMA_BANK = '$BANK' WHERE NIK = '$NIK'";
		mysqli_query($koneksi, $a) or die(mysqli_error($koneksi));

				echo '<div class="alert alert-success alert-dismissible fade in" role="alert">
				<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<strong> Sukses..!</strong> Data Berhasil Tersimpan.!
				<br>
				</div>';

		header("location:NAV.Asuransi&Bank.php");

?>
