Views: 133

Reply to This

Replies to This Discussion

Q kyaa hoa??

its  good

its good

Hmm...thnx dear for ur cooperation...

html file ?

Yup...this is html file ..

muhammad waleed said:

html file ?

hahahahahahahaha

Recheck file Muhammad Wlaeed..

Hnsny kaa zyada show h kyaa???



KTouseef KHAN said:

hahahahahahahaha

Ha solution k nai

<html>
<head>
<title>VU Sign Up Form</title>
</head>
<style type="text/css">
form {
position: relative;
margin: 30px auto;
width: 500px;
border: 8px solid #000000;
padding: 5px;
}
</style>
<body>
<form name="SignUp">
<center>
<h1> VU Sign Up Form</h1>
<br><br>
<table colspan="2" border="0">
<tr>
<td>Name:</td>
<td><input type="text" name="name" value="Your name"></td>
</tr>
<tr>
<td>Father Name:</td>
<td><input type="text" name="fathername" value="Your father name"></td>
</tr>
<tr>
<td>Gender:</td>
</tr>
<tr>
<td>Male</td>
<td><input type="radio" name="radio" checked value="Male"></td>
</tr>
<td>Female</td>
<td><input type="radio" name="radio"></td>
</tr>
<tr>
<td>Date of Birth</td>
<td><input type="text" name="DOB" value="type your DOB"></td>
</tr>
<tr>
<td valign="top">Study Program:</td>
<td>
<select name="Studyprogram" size="1" onchange="ShowMessage()">
<option value="BS Software Engineering">BS Software Engineering
<option value="BS Biotechnology" selected>BS Biotechnology
<option value="BS Infomation Technology">BS Infomation Technology
<option value="BS Computer science">BS Computer science
<option value="BS Zoology">BS Zoology
<option value="BS Botany">BS Botany
</select></td>
<tr>
<td>Comments</td>
<td><textarea name="Comments" rows="10" cols="22" value="">Write Something About Yourself Hobbies etc.</textarea></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="Email" value="1234567@gmail.com"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="Password" name="Password" id="Password1"></td>
</tr>
<tr>
<td>Confirm Password:</td>
<td><input type="Password" name="Password" id="Password2"></td>
</tr>
</table>
<br><br>
<p>
<input type="submit" name="SignUp" value="Sign Up" onclick="CheckForm()">
<input type="reset" value="Reset">
</p>
</center>
</form>

<script type="text/javascript">
function CheckForm(){
var a = document.getElementById("Password1").value;
var b = document.getElementById("Password2").value;
if (a != b) {
window.alert("No Match of Password & Confirm Password");
return false;
}
else if (a.length == 0 && b.length == 0) {
window.alert("Password field is Empty! Please enter a Password")
}
else{
window.alert("Congratulations! You have successfully registered.")
}
}
function ShowMessage(){
window.alert("Your study program has been changed");
}
</script>
</body>
</html>

Reply to Discussion

RSS

Sponsored Links

Sponsored Links

© 2018   Created by Ali Khan (Admin).   Powered by

Badges  |  Report an Issue  |  Terms of Service