Hi Friends,
I am very new to the PHP and trying to write my first program. I got some help from the internet but I am still not able to run my first program.
I am running Windows XP and downloaded the following
PHP: http://www.php.net/downloads.php
Apache Server: http://httpd.apache.org/download.cgi
My Program is very simple:
TEST.HTML
<form action="action.php" method="post">
<p>Your name: <input type="text" name="name" /></p>
<p>Your age: <input type="text" name="age" /></p>
<p><input type="submit" /></p>
</form>
ACTION.PHP
Hi <?php echo htmlspecialchars($POST['name']); ?>.
You are <?php echo (int)$POST['age']; ?> years old.
When I try to run the HTML file, system ask me to Save / Open Action.php file. When I select Open it doesn't do anything.
I hope you guys know what i am talking about, I would appreciate any help.
Thanks.