Write a PHP Program to read the employee details using form component.




Write a PHP Program  to read the employee details using form component.


<html>
<head>
<title>Employee Form</title>
</head>
<body>
<form name="empfrmdemo"action="practical6a.php"method="post">
<fieldset>
<legend>Grow More Computer Science </legend>
<table width="360px"border="2"align="center">
<caption><b>Enter Employee detail</b></caption>
<tr><td> <align="right">Employee Name</td>
<td> <input type="text"name="empname"size="30px"></td>
</tr>
<tr>
<td> <align="right">Address</td>
<td><textarea name="empadd"cols="23"></textarea></td>
</tr>
          <td align="right">Department</td>
          <td><select name="empdept">
          <option value="BCA"selected>BCA</option>
          <option value="PGDCA">PGDCA</option>
          <option value="M.SC.(CA&IT)">MSC(CA/IT)</option>
</select>
</td>
</tr>
<tr>
          <td align="right">Desination</td>
          <td><select name="empdes">
<option selected="" value="principal">Principal</option>
<option value="professor">Professor</option>   
<option value="Asst.professor">Asst.Professor</option>       
<option value="lecturer">Lecturer</option>
<option value="clerk">Clerk</option>      
</select>
</td>td>
</tr>
<tr>
          <td align="right">Male/Female</td>
          <td>
          <input type="radio"name="gender"value="male"checked="checked">Male<br>
<input type="radio"name="gender"value="female">Female</td>
</tr>
<tr><td align="right">Favourite Subjects</td>
<td>
<input type="checkbox"name="favsub[]"value="Hacking"checked="checked"/>Hacking<br/>
<input type="checkbox"name="favsub[]"value="Photoshop"/>Photoshop<br/>
<input type="checkbox"name="favsub[]"value="Forensic"checked="checked"/>Forensic<br/>
<input type="checkbox"name="favsub[]"value="C Language"/>C Language<br/>
<input type="checkbox"name="favsub[]"value="PHP"checked="checked"/>PHP<br/>
</td>
</tr>
<tr>
<td align="right">Contact No</td>
<td><input type="text"name="empeneno"size="30px"></td>
</tr><tr>
<td align="right">E-Mail</td>
<td><input type="text"name="empmail"size="30px"></td>
</tr><tr>
<td align="right">Password</td>
<td><input type="password"name="emppass"size="30px"></td>
</tr><tr>
<td align="right">Upload Photo</td>
<td><input type="file"name="empphoto"accept6="image/*"size="30px"></td>
</tr>
<tr>
<td colspan="2"align="center">
<input type="hidden"name="empid"value="101">
<input type="submit"name="submit"value="submit">  
</td></tr>
</table>
</fieldset
</form>
</form>
</body>
</html>

OUTPUT:-


Comments