Hi Group!
Newbie PHP5 enthusiast here.
Running Apache2 and PHP5 on SuSE Linux 9.1 pro.
Can't configure Apache2 and PHP5 correctly to implement the "noddy" form feedback example using "POST" example.
HTML Form page is:
<form action="foo.php" method="post">
Name: <input type="text" name="username" /><br />
Email: <input type="text" name="email" /><br />
<input type="submit" name="submit" value="Submit me!" />
Simple enough!
"foo.php" is:
<?php
echo $_POST['username'] . "<br>";
echo $_POST['email'] . "<br>";
?>
Hardly mind-blowing!
However! Instead of EXECUTING foo.php and displaying the contents of the input form, the server actually serves the script as a web-page. (i.e. I see the above code in the output!).
I feel that I've got a config error with Apache2 but - being a newbie - it could be with PHP5 instead.
Please could a resident PHP5 guru kick my butt and tell me (gently please!) where I've gone wrong?
Thanks in advance!
Gothmordrin.
Think it through first - then pester someone.