<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="self.php">
Name:<input type="text" name="t1"><br>
Age:<input type="number" name="t2"><br>
Email Address:<input type="text" name="t3"><br>
Password:<input type="password" placeholder="Enter Your password here" name="t4"><br>
<input type="submit" name="submit">
</form>
</body>
</html>
<?php
if (isset($_GET['submit'])) {
echo "Name:-".$_GET['t1']."<br>";
echo "Age:-".$_GET['t2']."<br>";
echo "Email:-".$_GET['t3']."<br>";
echo "Password:-".$_GET['t4']."<br>";
}
?>
No comments:
Post a Comment