I have been experiencing the same problem (w/ Win2K, Apache 1.3.4, PHP 4.2.3). I have tried the solution provided, but still have the same problem.
Here are two code samples (based on "SAMS Teach Yourself PHP in 24 Hours (or die trying))"
"php3a.php" looks like this:
<html>
<head>
<title>PHP test</title>
</head>
<body>
<form action="php3b.php">
<p>User:
<input type="text" name="user"></p>
<br>
<p>Address:
<textarea name="address" rows="5" cols="40">
</textarea></p>
<br>
<input type="submit" value="Submit!">
</form>
</body>
</html>
and "php3b.php" looks like this:
<html>
<head>
<title>PHP test</title>
</head>
<body>
<?php
print $POST['user']; (also tried "$user")
print $POST['address'];
foreach ($GLOBALS as $key=>$value ) {
print "\$GLOBALS[\"$key\"] == $value<br>";
}
?>
</body>
</html>
(I added the $GLOBALS output for some debugging. It seems to indicate that the POST data is not reaching PHP.
Results:...
Notice: Undefined index: user in d:\program files\apache group\apache\htdocs\php3b.php on line 12
Notice: Undefined index: address in d:\program files\apache group\apache\htdocs\php3b.php on line 13
$GLOBALS["HTTP_POST_VARS"] == Array
$GLOBALS["POST"] == Array
$GLOBALS["HTTP_GET_VARS"] == Array
$GLOBALS["GET"] == Array
$GLOBALS["HTTP_COOKIE_VARS"] == Array
$GLOBALS["COOKIE"] == Array
$GLOBALS["HTTP_SERVER_VARS"] == Array
$GLOBALS["SERVER"] == Array
$GLOBALS["HTTP_ENV_VARS"] == Array
$GLOBALS["ENV"] == Array
$GLOBALS["HTTP_POST_FILES"] == Array
$GLOBALS["FILES"] == Array
$GLOBALS["_REQUEST"] == Array
$GLOBALS["GLOBALS"] == Array
$GLOBALS["key"] == GLOBALS
$GLOBALS["value"] == GLOBALS
Any assistance os greatly appreciated.