那是我的配置问题吗?不解.....
我用iis服务器
 jakey9826(无眠) 请指点一下

解决方案 »

  1.   

    如果你的是PHP 4.0.6 以上的话,只要打开了错误显示就会报这样的错误的但是只是警告而已不影响正常运行的
      

  2.   

    修改php.ini 
    error_reporting  =  E_ALL & ~E_NOTICE //修改这行,重新启动IIS
    或者是在php的文件前面
    加上error_reporting (E_ALL ^ E_NOTICE);
    这行,看有没有错误
      

  3.   

    我按雪峰说的把php.ini文件修改了,还是存在问题
    现在这个who_are_you_advanced.php程序的参数传不到you_are_adavanced.php中去.下面是
    两个程序代码:
    //who_are_you_advanced.php<html>
    <head>
    <title>who are you advanced!</title>
    </head>
    <body>
    <form action="you_are_advanced.php" method="POST">
    please fill in the following fields:<br/>
    <?php
    $favorite_language="PHP";
    ?>
    <b>first name:</b>
    <input type="text" name="first" value="<?php print($first); ?>" size="15"><br/>
    <b>last name:</b>
    <input type="text" name="last" value="<?php print($last);?>" size="15"><br/>
    <b>favorite programming language</b>
    <input type="text" name="favorite_language" value="<?php print($favorite_language);?>" size="15"><br/>
    <input type="submit" value="go!" size="15">
    </form>
    </body>
    </html>
    //you_are_advanced.php<html>
    <head>
    <title>you are avanced........</title>
    </head>
    <body>
    hello,<b><?php print($first . " " . $last); ?></b>
    your favorite language is
    <?php print($favorite_language);?>
    <?php
         $query_string="";
     $query_string.="?first=".urlencode($first);
     $query_string.="&last=".urlencode($last);
     $query_string.="&favorite_language".urlencode($favorite_language); 
    ?>
    <br/>
    <a href="who_are_you_advanced.php<?php print($query_string)?>">
    back to who are you advanced
    </a>
    </body>
    </html>
      

  4.   

    不错,书上说的并没有错。但是你的那本书只适用于php4.0.6及以下。
    自php4.1.0以后已经不适用了。因为出于对网站的安全考虑已经将php.ini中的register_globals=on改为register_globals=off了,并不建议打开。所以你的书过时了!get方式传递的变量用$_GET[变量名]访问
    post方式传递的变量用$_POST[变量名]访问
    url方式传递的变量属于get方式