15)Write a PHP script to accept the details of Employee (EName, Designation, Department Gender ,Salary) and display it on next page.
employee_form.html
<html>
<body>
<form action="welcome.php" method="post">
<table width="50%" cellspacing="0" cellpadding="5" border="1">
<tr> <td>Name: </td><td><input type="text" name="ename"></td></tr>
<tr><td>Designation: </td><td><input type="text" name="designation"></td></tr>
<tr><td>Department: </td>
<td><select name="department">
<option value="">--Select--</option>
<option value="Income tax">Income tax</option>
<option value="Sales tax" >Sales tax</option>
<option value="Atomic energy">Atomic energy</option>
<option value="Biotechnology">Biotechnology</option>
</select>
</td></tr>
<tr><td>Gender: </td><td><input type="radio" name="gender" value="Female">
Female<input type="radio" name="gender" value="Male"> Male</td></tr>
<tr><td><input type="submit" name="submit" value="Submit" > </td>
<td><input type="reset" name="reset" value="Reset"></td></tr>
</table></form></body></html>
welcome.php
<table width="50%" cellspacing="0" cellpadding="5" border="1">
<tr><td>Name: </td><td><?php echo $_POST['ename']; ?></td></tr>
<tr><td>Designation: </td><td><?php echo $_POST['designation']; ?></td></tr>
<tr><td>Department: </td><td><?php echo $_POST['department']; ?></td></tr>
<tr> <td>Gender: </td><td><?php echo $_POST['gender']; ?></td></tr>
</table>
employee_form.html
<html>
<body>
<form action="welcome.php" method="post">
<table width="50%" cellspacing="0" cellpadding="5" border="1">
<tr> <td>Name: </td><td><input type="text" name="ename"></td></tr>
<tr><td>Designation: </td><td><input type="text" name="designation"></td></tr>
<tr><td>Department: </td>
<td><select name="department">
<option value="">--Select--</option>
<option value="Income tax">Income tax</option>
<option value="Sales tax" >Sales tax</option>
<option value="Atomic energy">Atomic energy</option>
<option value="Biotechnology">Biotechnology</option>
</select>
</td></tr>
<tr><td>Gender: </td><td><input type="radio" name="gender" value="Female">
Female<input type="radio" name="gender" value="Male"> Male</td></tr>
<tr><td><input type="submit" name="submit" value="Submit" > </td>
<td><input type="reset" name="reset" value="Reset"></td></tr>
</table></form></body></html>
welcome.php
<table width="50%" cellspacing="0" cellpadding="5" border="1">
<tr><td>Name: </td><td><?php echo $_POST['ename']; ?></td></tr>
<tr><td>Designation: </td><td><?php echo $_POST['designation']; ?></td></tr>
<tr><td>Department: </td><td><?php echo $_POST['department']; ?></td></tr>
<tr> <td>Gender: </td><td><?php echo $_POST['gender']; ?></td></tr>
</table>