trouble with $_post

I decided to play with php and found that i hit a snag.

post.php:
[php]
Name:
Age:

[/php]

welcome.php:
[php]Welcome <?php echo $_POST["fname"]; ?>!

You are <?php echo $_POST["age"]; ?> years old.[/php]

I got this code from a site when trying to find my solution.
When I submit the data, welcome.php displays the code showed above just as it is.
What am I doing wrong?

Do you have PHP installed and web server running (Apache/IIS etc.)?

Your correct about php installation
I bought a new computer and forgot to reinstall php (lol)

Sponsor our Newsletter | Privacy Policy | Terms of Service