cannot execute post method in html to php?

Swapna

New member
i wrote the html code and php seperately..when we enter the details to text box ,theis details cannot post to php
<form action="welcome.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

Welcome <?php echo $_POST["fname"]; ?>!<br />
You are <?php echo $_POST["age"]; ?> years old
 
Back
Top