<?php session_start();
      include '../../Connections/connect_mysql.php'; 
      //echo $_POST['id'];?>

<form data-parsley-validate class="form-horizontal form-label-left">

<?php $sql_eddep = 'SELECT * FROM department_tb WHERE dpmid = "'.$_POST['id'].'" ';
      $resuileddep = mysql_query($sql_eddep) or die(mysql_error());
?>
<?php while ($roweddep = mysql_fetch_array($resuileddep)) { ?>
<div class="form-group">
  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="useru">รหัสแผนก
  </label>
  <div class="col-md-6 col-sm-6 col-xs-12">
    <input type="number" id="codedepart" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $roweddep['dpmcode'];?>">
  </div>
</div>
<div class="form-group">
  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="passu">ชื่อแผนก
  </label>
  <div class="col-md-6 col-sm-6 col-xs-12">
    <input type="text" id="namedepart" name="last-name" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $roweddep['dpmname'];?>">
  </div>
</div>
<? } ?>
</form>