<input type="text" name="eee" id="eee"/>
<input type="text" name="lll" id="lll"/>
<input type="submit" value="qwqw" id="lll" name="itt"/>
<?php
if(isset($_POST["ttt"]))
{
echo $_REQUEST["ttt"];
$name=$_POST["eee"];
$images=$_POST["lll"];
echo $name." ".$images;
}
?> 当我点击submit时 怎么得到文本框的值呢
<input type="text" name="lll" id="lll"/>
<input type="submit" value="qwqw" id="lll" name="itt"/>
<?php
if(isset($_POST["ttt"]))
{
echo $_REQUEST["ttt"];
$name=$_POST["eee"];
$images=$_POST["lll"];
echo $name." ".$images;
}
?> 当我点击submit时 怎么得到文本框的值呢
我建议你参考一下这里:http://www.w3school.com.cn/tags/tag_form.asp
里面完整的叙述了HTML表单的格式。http://www.w3school.com.cn/php/php_post.asp
这里面说了如何用PHP接受表单数据。
有必要用么?速度快慢些。
写法如下:<form method="post" action="test.php" name="test">
<input type="text" name="name" />
<input type="password" name="password>" />
<input type="submit" value="提交"/></form><?php
if(isset($_post['name'])){
$name=$_post['name'];
$password=$_post['password'];
echo $name.$password;
}?>