<?php
if(isset($_POST['BtnSubmit']))
{
echo "<h2>Form Submitted Successfully!! Bellow is the data</h2>";
echo "<hr>";
echo "</br>Your Name :{$_POST['Fullname']}";
echo "</br>Your Age :{$_POST['UserAge']}";
echo "<hr>";
}
?>
<h2>PHP HTML Form Input Example</h2>
<form name="UserInformationForm" method="POST" action="#">
Enter Your Full Name :
<input name="Fullname" type="text" value="<?php echo $_POST['Fullname']; ?>"><br/><br/>
Enter Your Age :
<input name="UserAge" type="text" value="<?php echo $_POST['UserAge']; ?>"><br/><br/>
<input name="BtnSubmit" type="submit" value="Submit">
</form>