<?
 if(){
   echo "<input type=button>";  //这里显示
 }else{
   echo "";
 }
?>你说的我不知道为什么不行,但代码绝对可以用。

解决方案 »

  1.   

    <?php
    if($_POST['确定'])
    {
    ?>
    <input type="text" name="user" size=10 maxlength=10>
    <?php
    }
    ?>
      

  2.   

    <?php
    if($_POST["确定"])
    {
    echo '<input type="text" name="user" size=10 maxlength=10>';
    }
    else
    echo '';
    ?>
      

  3.   

    <?php
    if($_POST["确定"])
    {
        echo "<input type=\"text\" name=\"user\" size=\"10\" maxlength=\"10\">";
    } else {
        echo "";
    }
      

  4.   

    可以先echo $_POST["确定"];变量看看
      

  5.   

    <?
     if(isset($_POST["确定"])){
       echo "<input type=button>";  //这里显示
     }else{
       echo "";
     }
    ?>
      

  6.   

    使用isset函数可以判断是否设置了 $_POST["确定"] 这个变量
    如果设置了返回true,否则返回false
      

  7.   

    变量名有用中文的么?$_POST[""]->里面应该放的是字母或者下划线打头的字符串。