Hi, Brownie:
thanks for your reply. I followed you and did some change to httpd.conf (this is the line I have now: AddType application/x-httpd-php .php4 .php3 .phtml). Now .php pages can be displayed, but the browser seems ignoring the php code embeded in the html. when looking at the page source, I can see all the php codes and they are not being executed. too see what i am talking about, herer is a simple example:
page source before inputing info in the html form:
address bar:
http://localhost:81/phpapp/sign.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!--
//<?php
//print("Hello Web!");
//?>
-->
<style type="text/css">
<!--
h3 {font-family: arial, helvetica, sans-serif; color: 000099;}
txt {font-family: arial, helvetica, sans-serif; color: 003399;}
-->
</style>
<title>Sing My Guestbook Page</title>
</head>
<body>
<table width=600 align=left valign=top>
<tr>
<td colspan=2>
<h3>Sign My Guestbook: </h3>
<hr 100% color=green>
</td>
<tr>
</tr>
<form action="sign.php" method="GET">
<!--
//$PHP_SELF must use uppercase
-->
<tr>
<td align=right>
<p>Name:
</td>
<td align=left>&
<input type="text" name="name" size="50" value="">
<td align=right>
</tr>
<tr>
<td align=right>
<p>Location:
</td>
<td align=left>&
<input type="text" name="location" size="50" value="">
</td>
</tr>
<tr>
<td align=right>
<p>Email:
</td>
<td align=left>&
<input type="text" name="email" size="50" value="">
</td>
</tr>
<tr>
<td align=right>
<p>URL:
</td>
<td align=left>&
<input type="text" name="url" size="50" value="">
</td>
</tr>
<tr>
<td align=right valign=top>
<p>Comments:
</td>
<td align=left valign=top>
<textarea rows="4" cols="50"></textarea>
</td>
</tr>
<tr>
<td align=right valign=top>
<p><input name="sign" value="Sign" type="submit">
</td>
<td align=left valign=top>
<input name="startover" value="Start Over" type="reset">
</td>
</tr>
</form>
</table>
<?php
if (isset($name))
{
echo "$name<br> $location<br>";
}
?>
</body>
after:
address bar:
http://localhost:81/phpapp/sign.php?nam ... &sign=Sign
page source code is exactly same as before clicking "submit" button.
Thanks!