INPUT:
SUBMIT.html:
<html>
<body>
<form action="hai.php" method="post">
Enter the Name:
<input type="text" name="name1"/><br/>
Enter the College:
<input type="text" name="college"/><br/>
<input type="submit"/>
</form>
</body>
</html>
hai.php:
<html>
<body>
<h1>
<?php
echo $_POST["name1"]."<br>";
echo $_POST["college"];
?>
</h1>
</body>
</html>