php表单提交为什么用get方式可以提交获取值而post方式却不可以获取,一直显示:
notice: undefined index: text in c:\xampp\htdocs\phpstrom\hello.php on line 2;
就是说post方式传值失败,不太理解,目录是在c:xampp/htdocs目录下的。
post方式:
html源码:
nbsp;html>
Notice: Undefined index: text in ....
表单中只有
写错了 我把text改成了abc ,前面忘记了改 Notice: Undefined index: abc in C:\xampp\htdocs\phpstrom\hello.php on line 2;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号