form提交后,只返回最后一条数据,加个 [].
<form action="xxx" method="post">
<table>
<tr class="header">
<th>顺序</th>
<th>站点</th>
<th>说明</th>
<th>URL</th>
<th>logo 地址</th>
</tr>
<?php
foreach ($data as $v) {
?>
<tr>
<td>
<input type="text" name="sort[]" value="<?php echo $v['sort'];?>" />
</td>
<td>
<input type="text" name="name[]" value="<?php echo $v['name'];?>" />
</td>
<td>
<input type="text" name="desc[]" value="<?php echo $v['desc'];?>" />
</td>
<td>
<input type="text" name="url[]" value="<?php echo $v['url'];?>" />
</td>
<td>
<input type="text" name="logo[]" value="<?php echo $v['logo'];?>" />
</td>
</tr>
<?php
}
?>
<tr>
<td></td>
<td colspan='2'>
<input type="submit" value="提交" />
</td>
</tr>
</table>
</form>