+ -
当前位置:首页 → 问答吧 → 求助一个表单提交的问题

求助一个表单提交的问题

时间:2010-09-10

来源:互联网

数据库字段

'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" title="Click Here To EnLarge">


提交表单的页面

'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" title="Click Here To EnLarge">


尝试过下面的方法,这个只能提交一条数据,因为数据字段名相同,只能传递出最后一条id=4的,id为1到3的都没法传出
复制代码
  1. <form method='post' id="form1" name="form1"action="__URL__/update" >
  2. <table>
  3. <volist name="configList" id="list">
  4.         <tr>
  5.             <td class="tRight" >{$list.name}:</td>
  6.             <td class="tLeft" ><input type="text" name="id" value="{$list.id}"/><input type="text" class="medium bLeft"  name="body" value="{$list.body}" /></td>
  7.         </tr>
  8. </volist>
  9.         <tr>
  10.               <td><input type="submit" value="更 新"/></td>
  11.         </tr>
  12. </table>
  13. </form>


各位有没有什么好的方法可以对所有的数据都能进行更改的?谢谢了

作者: mcqun   发布时间: 2010-09-10

你这个有什么难的啊???
你直接获取每一个值不就行了啊!!

作者: binbin19891117   发布时间: 2010-09-10

相关阅读 更多

热门下载

更多