CLICK HERE FOR VARIOUS NEW JOBS 
CLICK HERE FOR VARIOUS EDUCATIONAL NEWS 
CLICK HERE FOR NEW SCHOLARSHIPS 
CLICK HERE FOR ADMISSION NOTICES 
Click And Follow On Google+ To Get Updates
Please Wait 10 Seconds... OR You CanSkip

ADMISSION NOTICES
Scholarships

Scholarship-300x291

BUDGET 2014-15
budget_2014-2015
New Date Sheets
VU SOLVED ASSIGNMENTS
Recent Posts

Posts Tagged ‘Solution May .2013’

Cs- 101 Assignment Solution May 2013 VU

Cs- 101 Assignment Solution May 2013 VU

 

VU  Cs- 101 Assignment Solution May 2013

<html>
<head>
<title>Registration Form</title>
<script>

function checkform()
{

var userid=document.form1.textfield1.value.length;
var password=document.form1.textfield2.value.length;
var name=document.form1.textfield3;
var email=document.form1.textfield5;
var country=document.form1.country;
var genders=document.form1;
if(userid==0)
{
window.alert(“User Id should not be empty / length be between 5 to 12″) ;
return false;
}
if((userid < 5) || (userid > 12))
{
window.alert(“Enter user id length be between 5 to 12″ ) ;
return false;
}

if(password==0)
{
window.alert(“Password should not be empty / length be between 7 to 12″ );
return false;
}
if((password < 7) || (password > 12))
{
window.alert(“Enter Password length be between 7 to 12″);
return false;
}

var letters = /^[A-Za-z]+$/;
if(!name.value.match(letters))
{
window.alert(“Name must have alphabet characters only”);
return false;
}

if(country.value==”default”)
{
window.alert(“Please Select your country”);
return false;
}
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(!email.value.match(mailformat))
{
window.alert(“Please Enter valid email address”);
return false;
}
if((genders.gender[0].checked!=true) && (genders.gender[1].checked!=true))
{
window.alert(“Please Select gender”);
return false;
}
else
{
window.alert(“Form Successfully Submitted”)
return true;
}

}

</script>

</head>

<body>
<table width=”50%”>
<tr>
<td colspan=”2″><h1>Registration Form</h1>
</td>
</tr>

<tr>
<td width=”5%”></td>
<td width=”95%”>
<form id=”form1″ name=”form1″ method=”post” action=”http://www.vu.edu.pk/”>
User Id :<br>
<input type=”text” name=”textfield1″ size=”20″><br>

Passowrd :<br>
<input type=”password” name=”textfield2″ size=”20″><br>

Name :<br>
<input type=”text” name=”textfield3″ size=”50″><br>

Address :<br>
<input type=”text” name=”textfield4″ size=”50″><br>

Country :<br>
<select name=”country”>
<option value=”default”>(Please select a country)</option>
<option>Afghanistan</option>
<option>China</option>
<option>Iran</option>
<option>Pakistan</option>
<option>Soudia Arabia</option>
<option>United Arab Emirates</option>
</select><br>

Email :<br>
<input type=”text” name=”textfield5″ size=”50″><br>

Gender:<br>
<input type=”radio” name=”gender” id=”male”>Male <br>
<input type=”radio” name=”gender” id=”female”>Female <br>
<br>
<br>
<input type=”submit” value=”Submit” onClick=”return checkform()”>
<input type=”reset” value=”reset”>
</form>
</td>
</tr>
</table>
</body>
</html>

Cs- 101 Assignment Solution May 2013 VU

ALL NEW RESULTS
Educational News

Updated Educational News

Categories
POSTS BY DATE
December 2016
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031