Professional Documents
Culture Documents
To be filled by Student
question#1
<html>
<head>
<title>Form</title>
</head>
<body>
NAME=
Address=
Gender=
</form>
</body>
</html>
<?php
$h=$_GET['r'];
$a=$_GET['n'];
$s=$_GET['d'];
$e=$_GET['k'];
?>
output:
question#2
<html>
<head>
<title> WEB PAPER</title>
</head>
<script>
function verificationPassword() {
var pw = document.getElementById("pswd").value;
if (pw==='')
document.getElementById("message").innerHTML = "";
else if(pw.length < 6)
document.getElementById("message").innerHTML = "Password length must be
atleast 6 characters";
else if(pw.length > 6 && pw.length < 10)
document.getElementById("message").innerHTML = "Medium";
else
document.getElementById("message").innerHTML = "Strong";
}
</script>
<body>
<center style="margin-top: 200px;">
<h1 style="color:green">WEB PAPER</h1>
<h3> Password Validations</h3>
<form onsubmit ="verificationPassword()">
<td> Password </td>
<input type = "password" id = "pswd" placeholder="Enter password" value = ""
onkeyup="verificationPassword()">
<span id = "message" style="color:red"> </span> <br><br>
<input type = "submit" value = "Save">
<button type = "reset" value = "Clear" >Clear</button>
</form>
</center>
</body>
</html>
view-source:file:///C:/Users/Umair%20Gujjar/Downloads/index
%20(2).html
output