<?php
//confirm.php
echo $_POST['name'];
?>

解决方案 »

  1.   

    <?php
    //confirm.php
    echo $_SESSION['name'];
    ?>
      

  2.   

    楼上的同志,有错误,错误提示如下:
    Notice: Undefined variable: _SESSION in c:\inetpub\wwwroot\confirm.php on line 13
    Invalid name
      

  3.   

    http://www.eaoo.com/design/list.asp?classid=2&Nclassid=9
      

  4.   

    <?php
    //confirm.php
    session_start();
    echo $_SESSION['name'];
    /*
    表单中<input type="text" name="name" size="25" maxlength="25">
    $_SESSION['name']得到值
    */?>
      

  5.   

    还是有错误啊!
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\confirm.php:12) in c:\inetpub\wwwroot\confirm.php on line 13Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\confirm.php:12) in c:\inetpub\wwwroot\confirm.php on line 13Notice: Undefined index: name in c:\inetpub\wwwroot\confirm.php on line 14
    Invalid name
      

  6.   

    confirm.php文件中 header之前有输出,任何输出都不行,空格也会出错。
      

  7.   

    对http协议就是有这么一个规定:在header之前不能有任何的输出。
      

  8.   

    你好象 把form 中写错了,如下:
    <form name="registration" method="post" action="confirm.php" enctype="multipart/form-data">好象是为:
    <form name="registration" method="post" action="confirm.php" >哪个enctype="multipart/form-data"是为了上传文件用的。你可以试一试。
      

  9.   

    对http协议就是有这么一个规定:在header之前不能有任何的输出不是这么一回事吧,而是如果你有任何输出,那么header就已经发送,就无法再次发送header了