I just installed Apache 2.2 and PHP 5.2.6 on an XP machine. I created a
test.php file which contains only one function, phpinfo(). It ran fine.
I saw the php parameters.
I then tested it using an htm file (see code below). When I clicked on
the submit button, instead of calling test.php, IE displayed a file
download window and asked me whether I wanted to open or save test.php.
And the hello world page (see code below) was blank.
What am I doing wrong? Thanks.
p.s. I have the following line in the httpd.conf file
AddType application/x-httpd-php .htm
============================
<html>
<body>
<FORM METHOD=post ACTION="test.php">
<INPUT type="text" size="10">
<input type="Submit" VALUE="Submit">
</FORM>
</body></html>
======= Hello World =====================
<html>
<head>
<titleHello World </title>
</head>
<body>
<?php
echo 'Hello, world!';
?>
</body>
</html>
** Posted from http://www.teranews.com **