Php 单击“我的提交”按钮时不会发生任何事情。no\u POST value
由于某些原因,当用户单击“我的提交”按钮时,不会发生任何事情。html如下所示:Php 单击“我的提交”按钮时不会发生任何事情。no\u POST value,php,html,post,input,submit,Php,Html,Post,Input,Submit,由于某些原因,当用户单击“我的提交”按钮时,不会发生任何事情。html如下所示: <td colspan="3"> <div align="center"> <input name="Decline" id="Decline" value="Decline" type="submit"> | <input name="Accept" value="Accept"
<td colspan="3">
<div align="center">
<input name="Decline" id="Decline" value="Decline" type="submit">
|
<input name="Accept" value="Accept" type="submit">
</div><input name="place" value="user1" type="hidden"><input name="id" value="1" type="hidden">
</td>
while($get = mysql_fetch_object($mysql1)){
echo $get->message;
当我尝试使用此信息时,$\u POST没有显示任何内容
我用这段代码测试了这一点:
if (!empty($_POST)){
echo "test"; // nothing shows up!
}
您需要将输入字段包装在表单标记中。尝试:
<td colspan="3">
<div align="center">
<form method="post" action="/path/to/script.php">
<input name="Decline" id="Decline" value="Decline" type="submit">
|
<input name="Accept" value="Accept" type="submit">
</div><input name="place" value="user1" type="hidden"><input name="id" value="1" type="hidden">
</form>
</td>
|
您需要将输入字段包装在表单标记中。尝试:
<td colspan="3">
<div align="center">
<form method="post" action="/path/to/script.php">
<input name="Decline" id="Decline" value="Decline" type="submit">
|
<input name="Accept" value="Accept" type="submit">
</div><input name="place" value="user1" type="hidden"><input name="id" value="1" type="hidden">
</form>
</td>
|
确保:
- 您在那里有
标签表单
- 并设置为
methodPOST
- 检查
var\u dump($\u POST)代码>
ini_set('display_errors', true);
error_reporting(E_ALL);
确保:
- 您在那里有
标签表单
- 并设置为
methodPOST
- 检查
var\u dump($\u POST)代码>
ini_set('display_errors', true);
error_reporting(E_ALL);
你有
吗?你有
吗?