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

	// menangkap data yang di kirim dari form
	$NIK		= $_POST['NIK'];
	$NOHP		= $_POST['NOHP'];
	$NOKK		= $_POST['NOKK'];
	$NAMAIBU	= $_POST['NAMA_IBU'];
	$STSNIKAH	= $_POST['STATUS_PERNIKAHAN'];
	$JLH_ANAK	= $_POST['JUMLAH_ANAK'];
	



		$a="UPDATE personal SET HP = '$NOHP', NO_KK = '$NOKK', NAMA_IBU_KANDUNG = '$NAMAIBU', STATUS_PERNIKAHAN = '$STSNIKAH', JUMLAH_ANAK = '$JLH_ANAK' 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.Kontak.Info.php");
?>