Hi....
Replace all your code of block by.....
if($_POST['submit'])
{
echo "hi !".$_POST["fname"]."<br />";
echo "ur age is".$_POST["age"];
}
?>
<html>
<body>
<form action="" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" name="submit" />
</form>
</body>
</html>