session_start();
?>
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
$user=$_POST['username'];
$pass=$_POST['password'];
确认你的程序是从表单提交进入的
确认你的表单是 post 方式的
确认控件名没有错
$user=$_POST['username'];
$pass=$_POST['password'];
确认你的程序是从表单提交进入的
确认你的表单是 post 方式的
确认控件名没有错
你说的几点我检查了,都是没有问题的,这会是什么问题呢。。。
那你让人如何解答呢?
你 表单与不给,出错页不给....
只是莫名其妙的一段代码
那你让人如何解答呢?
你 表单与不给,出错页不给....
只是莫名其妙的一段代码
|
要那么多form干什么,一个form就可以了。
<p> </p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/ai/1856">
<img src="https://img.php.cn/upload/ai_manual/000/000/000/175680148791985.png" alt="稿定抠图">
</a>
<div class="aritcle_card_info">
<a href="/ai/1856">稿定抠图</a>
<p>AI自动消除图片背景</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="稿定抠图">
<span>80</span>
</div>
</div>
<a href="/ai/1856" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="稿定抠图">
</a>
</div>
<p> </p><p> </p><table width="336" height="193" border="0" align="center" bgcolor="#009933"> <tr> <td height="157"><form id="form1" name="form1" method="post" action="1.php"> <p> 用户 <input type="text" name="username" /> </p> <p> 密码 <input type="text" name="password" /> </p> <table width="271" height="33" border="0"> <tr> <td> <label> <input type="submit" name="Submit" value="登录" /> </label> </td> <td> <label> <input type="submit" name="Submit2" value="重置" /> //此处type改为reset是否更为合适? </label> </form> </td> </tr> </table></td> </tr></table>print_r()你的用户名密码 不就知道怎么回事吗!
要那么多form干什么,一个form就可以了。
重置总不能跟前面放在一个form里面吧。。。这不是重点啦
为什么不能?你的第二个form里面根本就没有username 和 password 的控件,当然就报错了。
print_r($_POST); 就清楚了
为什么不能?你的第二个form里面根本就没有username 和 password 的控件,当然就报错了。
print_r($_POST); 就清楚了
嗯嗯~谢啦~
为什么不能?你的第二个form里面根本就没有username 和 password 的控件,当然就报错了。
print_r($_POST); 就清楚了
谢啦~
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号