rendered paste bodypaste this code into foo.html
---------------------------------
<html>
<head>
<title>post method example</title>
</head>
<body>
<form action="bar.php" method="post">
<input type="text" size="30" name="example" />
<input type="submit" value="test" />
</form>
</body>
</html>
now paste this code into a file named bar.php
------------------------------------------------
<html>
<head>
<title>post method example</title>
</head>
<body>
<?php
if(!empty($_POST['example'])){
echo $_POST['example'];
} else {
echo "nothing to output";
}
?>
</body>
</html>