如题
菜鸟求助

解决方案 »

  1.   

    test.php<?
    if (isset($_GET['hidd'])){
        //提交你的数据
        header("location:test.php");exit();
    }
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <form action='test.php' method='get'>
    <input type='hidden' name='hidd' value='1'>
    <input type='text' name='username'>
    <input type='submit' name='sub' value='提交'>
    </form>
    </body>
    </html>
    ?>
    是这样吗
      

  2.   

    上面有一点疏忽<?
    if (isset($_GET['hidd'])){
        //提交你的数据
        header("location:test.php");exit();
    }
    ?>
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <form action='test.php' method='get'>
    <input type='hidden' name='hidd' value='1'>
    <input type='text' name='username'>
    <input type='submit' name='sub' value='提交'>
    </form>
    </body>
    </html>
      

  3.   

    form提交是用的GET吗?
    if (isset($_POST['hidd'])){
        //提交你的数据
        header("location:test.php");exit();
    }
      

  4.   

    <?
    if (isset($_POST['hidd'])){
        //提交你的数据
        header("location:test.php");exit();
    }
    ?>
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <form action='test.php' method='post'>
    <input type='hidden' name='hidd' value='1'>
    <input type='text' name='username'>
    <input type='submit' name='sub' value='提交'>
    </form>
    </body>
    </html>
      

  5.   

    默认GET方式提交,<a href=''></a>也是以GET方式提交的。