谢谢大家,问题解决 我装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
2。$uname=$_POST['username']
<textarea name="user_name" rows="5" cols="60"></textarea>
<input type="submit">
</form>
<table>
<tr>
<td><?echo $_POST['user_name'];?></td>
</tr>
</table>
你这是提交本页,在你不断的提交的情况下,会显示两次。
我装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