应该可以,如果是表单提交,SUBMIT按钮的值IE是肯定传回去的

解决方案 »

  1.   

    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    </HEAD>
    <BODY>
    <?php
     if ($submit)
     {
    //process the form data.
    while (list($name,$value)=each($HTTP_POST_VARS))
    {
    echo "$name = $value<br>\n";
    }
     }
     else
     {
    //display the form
    ?>
    <form method = "post" action="<?php echo $PATH_INFO?>">
    名:<input type="text" name="first"><br>
    姓:<input type="text" name="last"><br>
    住址:<input type="text" name="address"><br>
    职位:<input type="text" name="position"><br>
    <input type="Submit" name="submit" value="输入信息">
    </form>
    <?php
     }
    ?>
    </BODY>
    </HTML>
    整个代码如上所写。
    错误提示如下:Warning: Undefined variable: submit in D:\管城汽配\form.php on line 7
      

  2.   

    if (isset($submit))
    or
    if (isset($HTTP_GET_VARS['submit']))