<?php
if (isset ($_POST["submit"])){
$name = $_POST["name"];
$fatherName = $_POST["fname"];
$Dob = $_POST["date"];
$eml = $_POST["email"];
echo "name is: $name, <br>".
" Father name is: $fatherName, <br>".
"Date of birth is: $Dob <br>".
"Email is: $eml";
}
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Email function</title>
</head>
<body>
<form class="" action="" method="post">
<label for="">Name:</label>
<br>
<input type="text" name="name" value="" placeholder="Enter your name">
<br>
<label for="">Father Name:</label>
<br>
<input type="text" name="fname" value="" placeholder="Enter your Fathe Name">
<br>
<label for="">Date of birth:</label>
<br>
<input type="date" name="date" value="">
<br>
<label for="">Email:</label>
<br>
<input type="email" name="email" value="" placeholder="Enter your email">
<br>
<br>
<br>
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>