CS406 Assignment 1 Solution and Discussion
-
Assignment No. 1
Fall 2019
CS406 – Web Based Database Applications Total Marks: 20Due Date: 15-Nov-2019
Assignment Submission Instructions:
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (from internet or from other students).
o You must submit assignment only in html web pages form, and you must keep all your web pages in a folder and zip the folder to upload .zip or .rar file on LMS.Lectures Covered:
Week 1, Week 2, and Week 3 Lectures have been covered.
Objectives:
The purpose of this assignment is to make you familiar with following topics:• Introduction to HTML
• HTML tags
• Table in HTML
• HTML form
Assignment Marks: 10You are required to develop an HTML page using Microsoft Notepad named as Patient Admit Form. It will be containing basic HTML controls and form elements. The sample is as follows;
Sample Output:
(See next page)
Deadline: Your assignment must be uploaded on or before the due date. We shall not accept your solution through email after the due date.
-
Solution:
<html> <title></title> <body> <h1><U>Patient Admit Card</U></h1></div> <form action="form.php" method="POST"> <table> <tr> <td width="50%">Patient Name </td> <td width="50%"><INPUT TYPE = "text" NAME="pName" ></td> </tr> <tr> <td width="50%">Patient ID</td> <td width="50%"><INPUT TYPE = "text" NAME="pID"></td> </tr> <tr> <td width="50%">Patient Age</td> <td width="50%"><INPUT TYPE = "number" NAME="pAge"></td> </tr> <tr> <td width="50%"> Mobile Number</td> <td width="50%"> <INPUT TYPE = "text" NAME="mNumber"></td> </tr> <tr> <td width="50%">Gender Male</td> <td width="50%"><input type="radio" name="gender"> Male <input type="radio" name="gender"> Female</td> </tr> <tr> <td width="50%">Patient Address</td> <td width="50%"><INPUT TYPE = "Text" NAME="pAddress"></td> </tr> <tr> <td width="50%">City</td> <td width="50%"><INPUT TYPE = "Text" NAME="city"></td> <tr> <td width="50%">District</td> <td width="50%"><INPUT TYPE = "Text" NAME="district"></td> </tr> <tr> <td width="50%">Doctor Name</td> <td width="50%"><INPUT TYPE = "Text" NAME="dName"></td> </tr> <tr> </table> <table> <tr> <td width="0%"><INPUT TYPE = "submit" NAME="Submit"></td> <td width="0%"><INPUT TYPE = "reset" NAME="Reset"></td> </tr> </table> </form> </body> </html>