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

	$no = 1;
	$data = mysqli_query ($koneksi, " select 
											HO_ID,
											HO_Customer,
											No_HO,
											Alamat_HO
									  from 
									  ho_tbl 
									  where HO_ID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-edit" method="post" action="update.php">
	<div class="form-group">
		<label>Head Office Customer</label>
		<input type="hidden" name="ho_id" value="<?php echo $row['HO_ID'] ; ?>">
		<input class="form-control" name="ho_cust" value="<?php echo $row['HO_Customer'] ; ?>">
		<p style="color:red" id="error_edit_ho_cust"></p>
	</div>
	<div class="form-group">
		<label>Nomor Head Office</label>
		<input class="form-control" name="no_ho" value="<?php echo $row['No_HO'] ; ?>">
		<p style="color:red" id="error_edit_no_ho"></p>
	</div>
	<div class="form-group">
		<label>Alamat Head Office</label>
		<textarea name="alamat_ho" class="form-control" rows="5" ><?php echo $row['Alamat_HO'] ; ?></textarea>
		<p style="color:red" id="error_edit_alamat_ho"></p>
	</div>			
	
</form>