Home >Backend Development >PHP Tutorial >$_POST['text']获取表单输入框里的内容失败,咋回事

$_POST['text']获取表单输入框里的内容失败,咋回事

WBOY
WBOYOriginal
2016-06-13 10:29:16882browse

$_POST['text']获取表单输入框里的内容失败,怎么回事

修改为:



xiugaipop.php内容如下:
 
echo "n1=";
echo $n1=$_GET['id'];
echo "
";

echo "n2=";
echo $n2=$_GET['c'];
echo "
";


echo $_POST['text'];
echo "
";
?>

 

------解决方案--------------------
form的提交方式为get必用$_GET来取值。
------解决方案--------------------
探讨


------解决方案--------------------
测试毫无问题。
------解决方案--------------------
最简单的方法把
改成
------解决方案--------------------
程序木有问题啊,可以获取啊
PHP code

修改为:

------解决方案--------------------
form url传递方式改为get
------解决方案--------------------
试试将改成
------解决方案--------------------
探讨
试试将改成
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn