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

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

<?php $sql_edposi = 'SELECT * FROM position_tb WHERE posid = "'.$_POST['id'].'" ';
      $resuiledposi = mysql_query($sql_edposi) or die(mysql_error());
?>
<?php while ($rowpoed = mysql_fetch_array($resuiledposi)) { ?>
<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="codeposi" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rowpoed['poscode'];?>" >
  </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="nameposi" name="last-name" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rowpoed['posname'];?>">
  </div>
</div>
<?php }mysql_close($c); ?>
</form>