测试页,http://www.tjzl.com/temp/test/text.php

解决方案 »

  1.   

    1。不要使用中文名
    2。$uname=$_POST['username']
      

  2.   

    原码就这样<form method=post action="">
    <textarea name="user_name" rows="5" cols="60"></textarea>
    <input type="submit">
    </form>
    <table>
    <tr>
    <td><?echo $_POST['user_name'];?></td>
    </tr>
    </table>
      

  3.   

    你把<form method=post action="">修改一下,制定action的地址。
    你这是提交本页,在你不断的提交的情况下,会显示两次。
      

  4.   

    谢谢大家,问题解决
    我装redhat9时,选装了apache.radhat9里的apache里有一行大概是load cunf.d/*.conf ,把/etc/httpd/conf.d/php.conf里的东西只留下loadmodul php4.so就行了。
    #
    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    #
     
    LoadModule php4_module modules/libphp4.so
     
    #
    # Cause the PHP interpreter handle files with a .php extension.
    #
    #<Files *.php>
    #    SetOutputFilter PHP
    #    SetInputFilter PHP
    #    LimitRequestBody 524288
    #</Files>
     
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    #DirectoryIndex index.php