2017-04-22 264 views
0

问题与提交表单,我没有看到任何错误form部分。HTML - 发送表单提交

这是我的代码示例,票号和用户ID被从MYSQL中推入。当提交后到达服务器端时,我只获得21个项目中的2个。 readonly只在最上面的2个项目中,其余的由最终用户输入。

<form action="<?php echo $NAV_includes_Research_Upload; ?>" method="POST"> 
    <table class="Table_Center"> 
     <tr> 
     <td>Ticket number:</td> 
     <td><input type="text" id="ticket" class="all" value="<?php echo "1"; ?>" readonly></td> 
     </tr> 
     <tr> 
     <td>User ID:</td> 
     <td><input type="text" id="user" class="all" value="<?php echo "test"; ?>" readonly> 
     </tr> 
     <tr> 
     <td>Site:</td> 
     <td><input type="url" id="website" class="all" autofocus required <?php if ($testing === 'ON') {echo 'value="http://www.google.com"';}?>></td> 
     </tr> 
</table> 
    <table class="Table_Center"> 
    <tr> 
     <td><input type="reset" value="Reset"></td> 
     <td><input type="submit" class="f_right" value="Submit"></td> 
    </tr> 
    </table> 

</form> 

谢谢你,这是失踪的名节。 我必须记住这一点。

+0

根据你的代码,我可以发现你可能没有从Action文件的表单中获取任何数据。那是对的吗? –

+0

请发布您的操作代码。 –

+0

当它返回到Action页面时,它从Form中显示2个项目被提交了21个项目。 –

回答

1

在您的表单代码中,我无法找到输入字段的name属性。在HTML表单Post中,由用户输入并提交的值由name属性调用。