
<?php
	include "../koneksi.php";
	$no = 1;
	$data = mysqli_query ($koneksi, " select 
											EkspedisiID,
											Ekspedisi,
											Alamat,
											PIC,
											HP
									  from 
									  ekspedisi 
									  where EkspedisiID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-edit" method="post" action="update.php">
	<div class="form-group">
		<label>Ekspedisi</label>
		<input type="hidden" name="ekspedisi_id" value="<?php echo $row['EkspedisiID'] ; ?>">
		<input class="form-control" name="ekspedisi" value="<?php echo $row['Ekspedisi'] ; ?>">
		<p style="color:red" id="error_edit_ekspedisi"></p>
	</div>
	<div class="form-group">
		<label>Alamat</label>
		<textarea class="form-control" name="alamat" rows="3"><?php echo $row['Alamat'] ; ?></textarea>
		<p style="color:red" id="error_edit_alamat"></p>
	</div>
	<div class="form-group">
		<label>PIC</label>
		<input class="form-control" name="pic" value="<?php echo $row['PIC'] ; ?>">
		<p style="color:red" id="error_edit_pic"></p>
	</div>
	<div class="form-group">
		<label>No. HP</label>
		<input class="form-control" name="hp" value="<?php echo $row['HP'] ; ?>">
		<p style="color:red" id="error_edit_hp"></p>
	</div>			
	
</form>