<html>
<body>
<form action="company_data.php" method="post" name="form_1">
Employee Name: <input type="text" name="name"> <br><br>
Employee Mobile: <input type="text" name="mobile"> <br><br>
Employee Mail: <input type="text" name="mail"> <br><br>
Employee Salary: <input type="text" name="salary"> <br><br>
<input type="submit" name="btn" value="Submit Details" >
</form>
</body>
</html>
<?php
if(isset($_REQUEST['btn']))
{
$a = $_POST['name'];
$b = $_POST['mobile'];
$c = $_POST['mail'];
$d = $_POST['salary'];
echo "Name : $a<br>Salary : $b<br>Mail : $c<br>Salary : $d";
}
?>
Comments
Post a Comment