rainplanet
February 8th, 2003, 14:53
Previously I have php installed on my computer running with Apache webserver and I found no problem. But somehow I have problem with my IIS. Then I reinstall my Windows, and now I installed PHP to run on IIS5.
I use the newest PHP version (4.3) and got an error when I try to run a simple script:
test.html
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="test.php">
Who is your favourite color?
<INPUT NAME="Color" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
test.php
<HTML>
<HEAD></HEAD>
<BODY>
Your favorite color is:
<?php
echo ($Color);
?>
</BODY>
</HTML>
The error message is "Notice: Undefined variable: Color in c:\inetpub\wwwroot\test\test.php on line 6"
Anyone has an idea, what should I configure to solve this problem? Something in php.ini maybe??? Thanks.
I use the newest PHP version (4.3) and got an error when I try to run a simple script:
test.html
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="test.php">
Who is your favourite color?
<INPUT NAME="Color" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
test.php
<HTML>
<HEAD></HEAD>
<BODY>
Your favorite color is:
<?php
echo ($Color);
?>
</BODY>
</HTML>
The error message is "Notice: Undefined variable: Color in c:\inetpub\wwwroot\test\test.php on line 6"
Anyone has an idea, what should I configure to solve this problem? Something in php.ini maybe??? Thanks.