HTML Program Name:- htmlpost1.html
<html>
<head>
<body>
<h1><center>Post Method</center></h1>
<form action="post1.php" method="post">
Name:<input type="text" name="name">
Email:<input type="text" name="email">
<input type="submit" value="Submit">
</form>
</body>
</head>
</html>
PHP Program Name:- post1.php
Welcome <?php echo $_POST["name"];?>
Your email id is:<?php echo $_POST["email"]; ?>
CODING FOR GET METHOD WITH EXAMPLE PROGRAM SESSON-2
Program name:- htmlget1.php
<html>
<head>
<body>
<h1><center>GET METHOD</center></h1>
<form action="get1.php" method="get">
Name:<input type="text" name="name">
Email:<input type="text" name="email">
<input type="submit" value="submit">
</body>
</head>
</html>
get1.php
Welcome<?php echo $_GET["name"];?>
Your Email Address is: <?php echo $_GET["email"];?>