如何通过href将值传递给php页面以从一行表中检索其余数据

时间:2017-01-31 18:22:29

标签: php

我想通过href传递值,我的问题是我在表上点击id(order_no),模态显示相同的值。 请查看附上的图片并帮助我: why i get the same value in popup modal

   <td align='center'  span style="font-weight:bold;"><a href="edit.php?id=<?php echo $f_customer['order_no']?>" data-toggle = "modal" data-target = "#action"><?php echo $f_customer['order_no']?></a></td>

Edit.php

  <?php $id = $_GET['id']; ?>

<div class="form-group col-xs-4 col-md-4">
<label for="name" class="control-label">Order Number</label>
<input type = "text" name = "order_no"  id="order_no" value = "<?php echo $id ?>"tabindex="1" class="form-control" />

0 个答案:

没有答案