I am trying PHP4.23 and PHP4.3. They worked fine with GET only. ALL POST and COOKIE are empty??? They are basic functions of Web development. I used PHP.INI-RECOMMENDED and turn on the OUTPUT_BUFFERING=4096 only. Here is my test code:
<html>
<head>
<title>TEST</title>
</head>
<body>
<?
echo "<BR> REQUEST:";
print_r($REQUEST);
print_r($HTTP_REQUEST_VARS);
echo "<BR> POST:";
print_r($POST);
print_r($HTTP_POST_VARS);
echo "<BR> GET:";
print_r($GET);
print_r($HTTP_GET_VARS);
echo "<BR> COOKIE:";
print_r($COOKIE);
print_r($HTTP_COOKIE_VARS);
echo "<BR> FILES:";
print_r($_FILES);
print_r($HTTP_FILES_VARS);
?>
<form action="test.php?hello=hello" method=post>
<input type=text id=ftext value=123></input>
<br><br>
<input type=submit></input>
<?
$start=time();
setcookie("start",$start,time()+600,",","",0);
?>
</form>
</body>
</html>
But the result always EMPTY???:
REQUEST:Array ( [hello] => hello )
POST:Array ( ) Array ( )
GET:Array ( [hello] => hello ) Array ( [hello] => hello )
COOKIE:Array ( ) Array ( )
FILES:Array ( )
WHO, PHP Experts, please help me! Thanks.
(I have checked internet and tried many different ways to do it for several days. Reinstall PHP serveral times. Used both IIS and Apache2. All were same results ... (EMPTY ARRAY!!!))