本帖最后由 a511940795 于 2014-08-25 21:00:15 编辑

解决方案 »

  1.   

    你的完整form代码是什么样的?
      

  2.   

    首先检查一下你的form表单里面的ID是不是重名了
    其次打印出你提交的数据进行检查var_dump($_POST);
      

  3.   

    <form action="<{:U('Xsxz/index?flag='.$list['xs_xh'].'')}>" id="form1" method="post" name="form1">
    <table class="rr"cellpadding="0" cellspacing="0">
      <tr>
        <td class="rr1">
        <table class="rr2" cellpadding="0" cellspacing="0">
      <tr>
        <td class="rr3">
        <table border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td></td>
            </tr>
        </table>
        <table  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
        <td width="36"><span class="STYLE23">学号:</span></td>
        <td width="161"><span class="rr6">
          <input type="text" name="textfield2" class="style021" />
        </span></td>
        <td width="70" align="center"><span class="STYLE23">学生姓名:</span></td>
        <td width="140"><span class="rr6">
          <input type="text" name="textfield" class="style021" />
        </span></td>
        <td width="85" ><span class="rr23">
          <input type="button" class="button01" value="查询"/>
        </span></td>
      </tr>
    </table>
        </td>
        <td  class="STYLE5"></td>
      </tr>
    </table>
        <table class="r8" cellspacing="0" cellpadding="0">
          <tr>
            <td height="34" class="rr7"><table class="r8" cellspacing="0" cellpadding="0">
              <tr>
                <td width="60%" class="rr8"><table width="100%" height="16" cellpadding="0" cellspacing="0" class="r8">
                  <tr>
               <td width="1" class="rr30"></td>
                    <td valign="bottom" class="rr10"><span class="STYLE1"><b>轮次:</b> 
                    <b><select name="lc" id="lc"><option value="第一轮">第一轮</option><option value="第二轮">第二轮</option></select></b> 
                    <b id="zme">总名额:</b><b id="zs"> 12 </b> <b>已选:</b><b id="yx"> 3 </b> <b>未选:</b><b id="wx"> 9 </b></span></td>
                  </tr>
                </table></td>
                <td width="40%">
    <table align="right" cellpadding="0" cellspacing="0" class="rr11">
      <tr>  
        <td class="rr13"></td>
      </tr>
    </table>
    </td>
              </tr>
            </table></td>
          </tr>
      </table></td>
      </tr>
      <tr>
        <td><table class="rr14" cellpadding="0" cellspacing="1">
          <tr>
            <td width="10%" class="rrr">学号</td>
            <td width="10%" class="rrr">学生姓名</td>
            <td width="10%" class="rrr">性别</td>
            <td width="10%" class="rrr">年龄</td>
            <td width="10%" class="rrr"><p class="up">学分</p></td>
            <td width="15%" class="rrr">学生信息</td>
            <td width="15%" class="rrr">学生成绩</td>
            <td width="20%" class="rrr">选择学生</td>
          </tr>
          <volist name="list" id="list" >
          <tr>
            <td class="rr17"  id="xh"><{$list.xs_xh}></td>
            <td class="rr17"><a href="#" onclick="window.showModalDialog('chakan_xinxi.html','','dialogHeight:600px;dialogWidth:650px;help:no');"><{$list.xs_xm}></a></td>
            <td class="rr17"><{$list.xs_xb}></td>
            <td class="rr17"><{$list.xs_nl}></td>
            <td class="rr17" ><{$list[xs_xf]}></td>
            <td class="rr17" ><a href="#" onclick="window.showModalDialog('chakan_xinxi.html','','dialogHeight:600px;dialogWidth:650px;help:no');">查看</a></td>
            <td class="rr17" ><a href="xuesheng_cj.html" >查看</a></td>
            <td class="rr17"><if condition="$list['xzflag'] ==0"><a href="" onclick="xz()"><b>选择</b></a><else/><a href="#" ><b class="rr18">取消</b></a></if></td>
            </tr>
      
       </volist>
         
      

  4.   

    <form action="<{:U('Xsxz/index?flag='.$list['xs_xh'].'')}>" id="form1" method="post" name="form1">
    <table class="rr"cellpadding="0" cellspacing="0">
      <tr>
        <td class="rr1">
        <table class="rr2" cellpadding="0" cellspacing="0">
      <tr>
        <td class="rr3">
        <table border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td></td>
            </tr>
        </table>
        <table  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
        <td width="36"><span class="STYLE23">学号:</span></td>
        <td width="161"><span class="rr6">
          <input type="text" name="textfield2" class="style021" />
        </span></td>
        <td width="70" align="center"><span class="STYLE23">学生姓名:</span></td>
        <td width="140"><span class="rr6">
          <input type="text" name="textfield" class="style021" />
        </span></td>
        <td width="85" ><span class="rr23">
          <input type="button" class="button01" value="查询"/>
        </span></td>
      </tr>
    </table>
        </td>
        <td  class="STYLE5"></td>
      </tr>
    </table>
        <table class="r8" cellspacing="0" cellpadding="0">
          <tr>
            <td height="34" class="rr7"><table class="r8" cellspacing="0" cellpadding="0">
              <tr>
                <td width="60%" class="rr8"><table width="100%" height="16" cellpadding="0" cellspacing="0" class="r8">
                  <tr>
               <td width="1" class="rr30"></td>
                    <td valign="bottom" class="rr10"><span class="STYLE1"><b>轮次:</b> 
                    <b><select name="lc" id="lc"><option value="第一轮">第一轮</option><option value="第二轮">第二轮</option></select></b> 
                    <b id="zme">总名额:</b><b id="zs"> 12 </b> <b>已选:</b><b id="yx"> 3 </b> <b>未选:</b><b id="wx"> 9 </b></span></td>
                  </tr>
                </table></td>
                <td width="40%">
    <table align="right" cellpadding="0" cellspacing="0" class="rr11">
      <tr>  
        <td class="rr13"></td>
      </tr>
    </table>
    </td>
              </tr>
            </table></td>
          </tr>
      </table></td>
      </tr>
      <tr>
        <td><table class="rr14" cellpadding="0" cellspacing="1">
          <tr>
            <td width="10%" class="rrr">学号</td>
            <td width="10%" class="rrr">学生姓名</td>
            <td width="10%" class="rrr">性别</td>
            <td width="10%" class="rrr">年龄</td>
            <td width="10%" class="rrr"><p class="up">学分</p></td>
            <td width="15%" class="rrr">学生信息</td>
            <td width="15%" class="rrr">学生成绩</td>
            <td width="20%" class="rrr">选择学生</td>
          </tr>
          <volist name="list" id="list" >
          <tr>
            <td class="rr17"  id="xh"><{$list.xs_xh}></td>
            <td class="rr17"><a href="#" onclick="window.showModalDialog('chakan_xinxi.html','','dialogHeight:600px;dialogWidth:650px;help:no');"><{$list.xs_xm}></a></td>
            <td class="rr17"><{$list.xs_xb}></td>
            <td class="rr17"><{$list.xs_nl}></td>
            <td class="rr17" ><{$list[xs_xf]}></td>
            <td class="rr17" ><a href="#" onclick="window.showModalDialog('chakan_xinxi.html','','dialogHeight:600px;dialogWidth:650px;help:no');">查看</a></td>
            <td class="rr17" ><a href="xuesheng_cj.html" >查看</a></td>
            <td class="rr17"><if condition="$list['xzflag'] ==0"><a href="" onclick="xz()"><b>选择</b></a><else/><a href="#" ><b class="rr18">取消</b></a></if></td>
            </tr>
      
       </volist>