程序的意图是不是输入hhh显示1,否则显示2?
用POST的话 表单要method也要为post
判断的话用2个=
<?php
$ab='hhh';
if($ab==$_POST['aa'])
{
   echo "1";
}
else
{
   echo "2";
}
?>=============================
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
</head><body>
<form id="form1" name="form1" method="post" action="test.php">
   <label>
   <input name="aa" type="text" id="aa" />
   </label>
   <label>
   <input type="submit" name="Submit" value="提交" />
   </label>
</form>
</body>
</html>

解决方案 »

  1.   

    <form id="form1" name="form1" method="get" action="cc.php"> 
    中get改post
      

  2.   

    三楼那样写出不了什么问题了.
    然后你在接收时,可以<?
      print( "<pre>" ); print_r( $_POST );   print( "<pre>" );  //来检测一下你所接收到的数据. 没有必要再去写判断这啊,那的....
    //or var_dump ( $_POST );  //这个看得更细.
    ?>