+ -
当前位置:首页 → 问答吧 → php post 得到数据

php post 得到数据

时间:2011-10-23

来源:互联网

<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时 怎么得到文本框的值呢

作者: flat_boy   发布时间: 2011-10-23

你的表单中没有名为 ttt 的对象,自然得不到提交的数据

作者: xuzuning   发布时间: 2011-10-23

thank you 粗心

作者: flat_boy   发布时间: 2011-10-23