Hallo,
ich habe mit meiner XAMPP Installation sowohl unter PHP 5 als auch unter PHP 4 das Problem, daß bei Formularen POST-Requests nicht funktionieren.
GET funktioniert einwandfrei.
Hat irgendjemand eine Idee woran das liegen könnte ?
Die httpd.conf habe ich außer einigen zusätzlichen Alias-Einträgen nicht verändert.
Hier ist das Formular form.php das ich zum testen
ins htdocs root gelegt habe :
**********************************************************
<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>TEST POST</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
<pre><?php
print_r($_POST);
?></pre>
<form action="<?php print $SERVER['PHP_SELF']; ?>" method="post" enctype="text/plain">
<input type="text" name="egon" value="<?php print $_POST['egon']; ?>" size="40" maxlength="40"/>
<input type="submit" name="hugo" value="abschicken"/>
</form>
</body>
</html>
**********************************************************
Ersetzt man POST durch GET funktioniert alles tadellos.
Das Server-Log zeigt, daß der POST-Request ausgeführt wurde :
127.0.0.1 - - [13/Jan/2006:11:07:42 +0100] "GET /form.php HTTP/1.1" 200 541 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1. Gecko/20051111 Firefox/1.5"
127.0.0.1 - - [13/Jan/2006:11:07:46 +0100] "POST /form.php HTTP/1.1" 200 541 "http://localhost/form.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1. Gecko/20051111 Firefox/1.5"
127.0.0.1 - - [13/Jan/2006:11:24:03 +0100] "GET /form.php HTTP/1.1" 200 541 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
127.0.0.1 - - [13/Jan/2006:11:24:09 +0100] "POST /form.php HTTP/1.1" 200 541 "http://localhost/form.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
Ich nutze folgende Version vom XAMPP :
ApacheFriends XAMPP (basic package) version 1.5.0-pl1
+ Apache 2.0.55
+ MySQL 5.0.15 + Bug #13783
+ PHP 5.0.5 + PHP 4.4.1-pl1 + PEAR
+ eAccelerator 0.9.4-dev
+ PHP-Switch win32 1.0 (from Apachefriends, use the "php-switch.bat")
+ XAMPP Control Version 2.1 from www.nat32.com
+ XAMPP Security 1.0
+ SQLite 2.8.15
+ OpenSSL 0.9.8a
+ phpMyAdmin 2.6.4-pl3
+ ADODB 4.65
+ Mercury Mail Transport System v4.01b
+ FileZilla FTP Server 0.9.10a
+ Webalizer 2.01-10
+ Zend Optimizer 2.5.10a
Bin für jede Hilfe dankbar !