I've recently installed PHP 4.3.3, and am using Apache 2.0.47 on a Windows 2000 machine. I'm using the PHP CGI binary and configured the httpd.conf as such.
Basically, I have a PHP script (go.php) which looks like this:
<html>
<head>
<title>go</title>
</head>
<body>
<?
echo "var1=$var1";
?>
</body>
</html>
when I call the script like this (from my browser):
http://localhost/sp/go.php?var1=aaa
I get this:
Notice: Undefined variable: var1 in C:\public_html\sp\go.php on line 8
var1=
Likewise, I get the same message when I have a form like this:
<html>
<head>
</head>
<body>
<form action="go.php" method=POST>
<input type=text name=var1><br>
<input type=submit value="OK">
</form>
</body>
</html>
The same problem happens if "method=GET".
Any ideas?