CS101 Assignment No. 2 Solution-2
Monday, November 22, 2010 Posted In CS and IT Edit ThisAssignment no 2
html> <head> <title>bc100401803: Student ID: Your VU ID</title>
<script language="javascript" type="text/javascript">
function checkForm(){
if (document.regForm.one.value.length < 1){
alert("Empty Form field...! Please fill.");
return false;
}
if (document.regForm.two.value.length < 1){
alert("Empty Form field...! Please fill.");
return false;
}
if (document.regForm.three.value.length < 1){
alert("Empty Form field...! Please fill.");
return false;
}
if (document.regForm.four.value.length < 1){
alert("Empty Form field...! Please fill.");
return false;
}
return true;
}
</script>
</head>
<body background="C:\WINDOWS\Web\Wallpaper\Crystal.jpg" >
<form name="regForm" action="http://www.vu.edu.pk" method="post"
onSubmit="return checkForm()">
<table border="0" align="center">
<tr><td align="center" bgcolor="sky blue"
width="800" colspan="text">
<font color="white"><b>ADMISSION
FORM</b></font></td></tr></table>
<table border="1" bordercolor="sky blue"
align="center" bgcolor="white">
<tr><td colspan="2" align="left" bgcolor="sky
blue" width="800">
<font
color="white"><b>BIO-DATA</b></font></td></tr>
<tr><td align="left"
width="30%"><b>Candidate's Name : </b></td>
<td width="70%">
<input type="text" align="left" name="one"
size="20" maxlength="25"><b><font
color="red">
Max. character limit is 25 </font></b></td></tr>
<tr><td align="left"
width="30%"><b>Father's Name : </b></td>
<td width="70%"><input type="text"cols="30"
rows="3"></textarea><b><font
color="red"></td></tr>
<tr><td align="left"
width="30%"><b>Upload Your CV : </b></td>
<td width="70%"><input type="file"
name="four" value="Browse"
enctype="multipart"></td></tr>
<tr><td colspan="2" align="left" bgcolor="sky
blue" width="800">
<b><font
color="white">EDUCATION</b></font></td></tr>
<tr><td align="left"
width="30%"><b>Highest Education :
</b></td><td width="70%">
<select name="H.E">
<option selected> --- Click to Select --- </option>
<option>BBA</option>
<option>B.A</option>
<option>BS(IT)</option>
<option>BCS</option>
<option>MBA</option>
<option>MCS</option>
</select></td></tr>
<tr><td valign="top" width="30%"><b>GRADE
: </b></td>
<td width="70%"><input type="radio"
name="radio">A+<br>
<input type="radio" name="radio">A<br>
<input type="radio" name="radio">B+<br>
<input type="radio" name="radio">B<br>
<input type="radio" name="radio">C+<br>
<input type="radio" name="radio">C<br>
</td></tr>
<tr><td colspan="2" align="left" bgcolor="sky
blue" width="800">
<font color="white"><b>DEGREE
PROGRAMME</b></font></td></tr>
<tr><td width="30%"><b>Program Applied for:
</b></td><td width="70%">
<select name="applied">
<option selected> --- Click to Select --- </option>
<option>MS(CS)</option>
<option>MS(BA)</option>
<option>MCS</option>
<option>MBA</option>
<option>BCS</option>
<option>BBA</option>
</select></td></tr>
<tr><td valign="top"
width="30%"><b>Session Applied for : </b></td>
<td width="70%">
<input type="checkbox" name="check">Morning<br>
<input type="checkbox"
name="check">Afternoon<br>
<input type="checkbox" name="check">Evening<br>
</td></tr>
<tr><td align="left" width="30%"></td>
<td width="70%"><input type="submit"
name="regForm" value="Submit" >
<input type="reset"></td></tr>
<table border="0" align="center">
<tr><td align="center" bgcolor="sky blue"
width="800" colspan="text">
</table> </form> <tr>
<form><td width="100%" bgcolor="Darkblue" align="center"><font color="white"><b>2010 All Rights reserved</b></font></form></td>
</body> </html>