="<?php echo $PHP_SELF; ?>"   试试

解决方案 »

  1.   

    <html><head></head><body>
    <?php
    if (!empty($_POST['name'])) {
    echo "Greetings,{$_POST['name']}},and welcome."
    ?><from action="<?php $PHP_SELF; ?>"  method="post">
    enter your name : <input type="text" name="name"/>
    <input type="submit"/>
    </from>
    </body>
    </html> 《------是22 line
    Parsing Error: PHPDocument1 line 22 - parse error, unexpected $
    改了,还是不行,问题是一样的,这个书上的例子,晕呀!!
      

  2.   

    echo "Greetings,{$_post['name']}},and welcome."
    这句改成
    echo "Greetings,{$_post['name']},and welcome.";}
      

  3.   

    仔细看了一下,错误还不少呢
    帮你改了下,测试通过<html><head>
    </head><body>
    <?php
    if (!empty($_POST['name'])) {
      echo "Greetings,".$_POST['name'].",and welcome.";
    }
    ?><form action="<?echo $PHP_SELF; ?>"  method="post">
    enter your name : <input type="text" name="name">
    <input type="submit">
    </form>
    </body>
    </html>