<?php
if($_SERVER['REQUEST_METHOD']=='GET'')
{
<html>
<head>
    <title></title>
</head>
<body>
    <div style=" text-align:center;">
    <form action="" method="post">
            <input type="text" name="mima"/>
            <input type="submit" />
    </form>
             
    </div>
</body>
</html>这该怎么混编呢?能有大侠给我个示例吗

解决方案 »

  1.   

    <?php
    if($_SERVER['REQUEST_METHOD']=='GET'')
    {
    ?>
    <html>
    <head>
        <title></title>
    </head>
    <body>
        <div style=" text-align:center;">
        <form action="" method="post">
                <input type="text" name="mima"/>
                <input type="submit" />
        </form>
                 
        </div>
    </body>
    </html>
    <?php }else{
    ......POST的时候修改数据.......
    }
    ?>