<form action="action.php" method="POST">Your name: <input type=text name=name><br>You age: <input type=text name=age><br><input type=submit></form>
Hi <?php echo $_POST['name']?>. You are <?php echo $_POST['age']?> years old.