Masalahnya cuma gak refresh atau gak kembali ke menu yg telah diedit. Tetapi data yang diedit tersimpan.
mohon bantuan,terimakasih

<fieldset>
	<legend>Edit Soal Tugas</legend>

	<?php
	$id = @$_GET['id'];
	$sql = mysql_query("select * from soaltugas where id = '$id'") or die (mysql_error());
	$data = mysql_fetch_array($sql);
	?>
	<form action="" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td>id</td>
				<td>:</td>
				<td><input type="text" name="id" value="<?php echo $data['id']; ?>" /></td>
			</tr>
			<tr>
				<td>judul_tugas</td>
				<td>:</td>
				<td><input type="text" name="judul_tugas" value="<?php echo $data['judul_tugas']; ?>" /></td>
			</tr>
			<tr>
				<td>kode_matkul</td>
				<td>:</td>
				<td><input type="text" name="kode_matkul" value="<?php echo $data['kode_matkul']; ?>" /></td>
			</tr>
			<tr>
				<td>keterangan</td>
				<td>:</td>
				<td><input type="text" name="keterangan" value="<?php echo $data['keterangan']; ?>" /></td>
			</tr>
			<tr>
				<td>filename</td>
				<td>:</td>
				<td><input type="text" name="filename" value="<?php echo $data['filename']; ?>" /></td>
			</tr>
			<tr>
				<td>location</td>
				<td>:</td>
				<td><input type="text" name="location" value="<?php echo $data['location']; ?>" /></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td><input type="submit" name="edit" value="Edit" /></td>
			</tr>
		</table>
	</form>
	<?php
	$id = @$_POST['id'];
	$judul_tugas = @$_POST['judul_tugas'];
	$kode_matkul = @$_POST['kode_matkul'];
	$keterangan = @$_POST['keterangan'];
	$filename = @$_POST['filename'];
	$location = @$_POST['location'];

	$edit_soal = @$_POST['edit_soal'];

	if($edit_soal) {
		if($id == "" || $judul_tugas == "" || $kode_matkul == "" || $keterangan == "" || $filename == "" || $location == "")
		?>
	<script type="text/javascript">
		alert("tidak boleh ada yang kosong");
	</script>
	<?php
} else {
		mysql_query("update soaltugas set
	judul_tugas = '$_POST[judul_tugas]',
	kode_matkul = '$_POST[kode_matkul]',
	keterangan = '$_POST[keterangan]',
	filename = '$_POST[filename]',
	location = '$_POST[location]'
	where id =  '$_POST[id]'") or die (mysql_error());
	
	if($edit_soal) {
		echo"Data telah diupdate";
		echo"<meta http-equiv='refresh' content='1; url=?page=Soal Tugas'>";
	}
	}
	?>
</fieldset>
Silahkan login untuk menjawab!