Php Can';不要将数据发送到另一页

Php Can';不要将数据发送到另一页,php,html,mysql,Php,Html,Mysql,我想将隐藏数据和用户输入数据发送到另一个页面。首先,我尝试只进行一次用户输入,然后系统可以根据我的需要发送数据 <h1><strong>Please scan barcode on JIG</strong></h1> <table> <form action="productjit21.php" method="post" name="check2"/> <input type="hidden" name="produ

我想将隐藏数据和用户输入数据发送到另一个页面。首先,我尝试只进行一次用户输入,然后系统可以根据我的需要发送数据

<h1><strong>Please scan barcode on JIG</strong></h1>
<table>
<form action="productjit21.php" method="post" name="check2"/>
<input type="hidden" name="productnumber" value="<?php echo $productnumber; ?>">
<tr><td>JIG Barcode</td><td>:</td><td><input type="text" name="jitcode2" maxlength="50"/></td></tr>
</table>
请扫描夹具上的条形码

不要立即关闭表单标记,而是尝试像这样将输入包装到表单标记中

<form action="productjit21.php" method="post" name="check2">
<input type="hidden" name="productnumber" value="<?php echo $productnumber; ?>">
<tr><td>JIG Barcode</td><td>:</td><td><input type="text" name="jitcode1" maxlength="50"/></td></tr>
<tr><td>JIG Barcode</td><td>:</td><td><input type="text" name="jitcode2" maxlength="50"/></td></tr>
</form>


谢谢@Ruben Funai。我听了你的建议。它仍然无法发送数据。。当我点击“输入”时,什么也没有发生。因为你现在有两个输入字段,你需要一个提交按钮来触发提交。使用隐藏按钮将另一行添加到表中应该可以做到这一点。类似于
save
你可以看到这篇关于这个小“怪癖”的帖子
<form action="productjit21.php" method="post" name="check2">
<input type="hidden" name="productnumber" value="<?php echo $productnumber; ?>">
<tr><td>JIG Barcode</td><td>:</td><td><input type="text" name="jitcode1" maxlength="50"/></td></tr>
<tr><td>JIG Barcode</td><td>:</td><td><input type="text" name="jitcode2" maxlength="50"/></td></tr>
</form>