Running the php file from the local host is not the problem, it ti when I try to run it from within the html file. I am new to this, so please bear with me.
I am using an html form page, to call a php script, but instead of executing the script, it prompts me to download the file. If I download the file, I gat the entire php script file, exactly as it is.
I have installed php manually, after Apache (see previous post) and modified the Apache configuration file as shown in several places on this website. However, Apache does not seem to recognize the php script.
Please help
The example from the book I am learing with is as follows:
HTML code ------------------------
<html>
<head>
<title>A simple HTML form</title>
</head>
<body>
<form action="send_simpleform.php" method="POST">
<p><strong>Name:</strong><br/>
<input type="text" name="user"></p>
<p><strong>Message:</strong><br/>
<textarea name="message" rows="5" cols="40"/></textarea></p>
<p><input type="submit" value="send"/></p>
</form>
</body>
</html>
PHP File -------------------------
<?php
echo "<p>Welcome <b>".$POST["user"]."</b>!</p>";
echo "<p>Your message is:<br/><b>".$POST["message"]."</b></p>";
?>