刚才那个问题没有解决呢 我先用一个简短的例子做了个实验
我在网上看的说下面的代码不会提交过去 为什么我试了能提交过去呢?
我把form的onsubmit直接改成"return false"这样提交不过去 但是例子里面的可以提交过去 网上也有很多这样的例子 我试了怎么都能提交过去呢?这是为什么?
<!doctype html><html><head> <title></title> <script type="text/javascript"> function check(){ return false; }</script></head><body><form onsubmit="check()"><input type="submit" value="点击表单不会提交" /></form></body></html>
为了清晰起见,加了点代码
<!DOCTYPE html><html><head> <title></title> <script type="text/javascript"> function check(){ return false; }</script></head><body><form onsubmit="check()"><input type="submit" name=test value="点击表单不会提交" /></form></body></html><?phpprint_r($_GET);
为了清晰起见,加了点代码
<!DOCTYPE html><html><head> <title></title> <script type="text/javascript"> function check(){ return false; }</script></head><body><form onsubmit="check()"><input type="submit" name=test value="点击表单不会提交" /></form></body></html><?phpprint_r($_GET);那你应该贴出真实代码
那你应该贴出真实代码
你的这个代码就是能提交的!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号