php - 提交表单后无法重新加载网页
php - can't reload webpage after submitting form
problem
testing
<form method="post">
Name:<input type="text" name="check" action="">
<input type="submit">
</form>
<?php
if($_SERVER['REQUEST_METHOD']=='POST')
{
$store=$_POST['check'];
if(empty($store)){
echo 'empty';
}
else{
echo $store;
}
}
?>
</body>
</html>
我正在尝试在提交表单后重新加载/刷新我的页面
我不知道为什么我无法刷新我的网页我收到一条弹出消息
[[ CONFORM FORM SUBMISSION ]] 我点击继续没有任何效果我仍然无法刷新我的页面!
表格的html不正确。应该是:
<form method="post" action="">
<label>Name:</label><input type="text" name="check"/>
<input type="submit" value="submit"/>
</form>
problem testing
<form method="post">
Name:<input type="text" name="check" action="">
<input type="submit">
</form>
<?php
if($_SERVER['REQUEST_METHOD']=='POST')
{
$store=$_POST['check'];
if(empty($store)){
echo 'empty';
}
else{
echo $store;
}
}
?>
</body>
</html>
我正在尝试在提交表单后重新加载/刷新我的页面 我不知道为什么我无法刷新我的网页我收到一条弹出消息 [[ CONFORM FORM SUBMISSION ]] 我点击继续没有任何效果我仍然无法刷新我的页面!
表格的html不正确。应该是:
<form method="post" action="">
<label>Name:</label><input type="text" name="check"/>
<input type="submit" value="submit"/>
</form>