Admin Admin
Posts : 638 Points : 2155 Reputation : 19 Join date : 2010-05-15 Age : 36 Location : islamabad
| Subject: cs101 2nd assignment solution Tue Nov 16, 2010 10:20 am | |
| - Code:
-
<html> <head> <title>Student admission form: 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" align="left" name="two" size="20" maxlength="25"><b><font color="red"> Max. character limit is 25 </font></b></td></tr> <tr><td valign="top" width="30%"><b>Postal-Address : </b></td> <td width="70%"><textarea name="three" 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> </body> </html>
| |
|