Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyedSaifAliRizvi #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions SyedSaifAliRizvi
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<!-- THE BOILERPLATE SHOULD NOT BE REMOVED -->
<!-- Proper naming convention should be used while naming id attributes. -->
<!-- ADDING A SUCCESS PAGE FOR THE SAME WILL BOOST YOUR CHANCES -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
<style>
body
{
background-image: url('https://dontpaniclabs.com/wp-content/uploads/2017/07/php.jpg')

}
h2
{
text-align:center;
}
.btn
{
background-color:gray;
border: solid;
color: black;
font-family:sans-serif;
text-align: center;
font-size: 16px;
cursor: pointer;
}
.log-form
{
background-color:black;
color:white;
font-family: sans-serif;
border: solid;
padding:10px;
text-align:left;
width:300px;
margin:auto;
}


</style>
<script src="main.js">
function validateform(){
var name=document.f1.name.value;
var password=document.f1.password.value;

if (name==""){
alert("Name can't be blank");
return false;
}else if(password.length<6){
alert("Password must be at least 6 characters long.");
return false;
}
}


function validatenumber(){
var num=document.f3.num.value;
if (isNaN(num)){
alert("Enter Numeric value only");
return false;
}else{
return true;
}
}
function validateemail()
{
var x=document.f4.email.value;
var atposition=x.indexOf("@");
var dotposition=x.lastIndexOf(".");
if (atposition<1 || dotposition<atposition+2){
alert("Please enter a valid e-mail address”);
return false;
}
}

</script>
</head>
<body>
<img src="data:image/png;base64,iVBORw0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wgeOZw1peIacouNZWRqe0DvleNaQjueB/rtwPKtLx5MNfVk5ntWl48kM6LfjWV06njDYrBU5nlWl5clGvy0cz8rS8mTZzdnS8awqLU92cfur41lVep7STHnHs4L0PMXcJsezmvQ85cHyjmd56Xl2pY+LOZ7lhb4XhHjKv83jeJaXgaf0SyaOZ3kZeEoGtJjnkH7aqB/HZOQo6/Psm2ZGPUSvzVP6emhRf0ff90fkj9i/kn8D+EaV/ouQD9KL88TfTi/iGY1bCcS1R1L6HZKeSsdRLmwMpyyvF+eJfyariGc6CMcfztPZmH4Y0yLOjifiib9vU8iTGMyv+GNPtqQ8iRUdO56IJ25yFo23Sf/32WinPwznt+Pde0yGVfaW+lM+Rq/Gc6HwRB8IKxoPxgYxLS6E5ySOb50eGbe2fYo/evIkCSNPNFsS85Q/LqvhOWrE+4+r5zWj5/D81ZNmZeQpvmsv8aRTOsQEWDJsjPGMj4znJDGiXrR6Dk/fn0xGidJBc4kuF933lx6jTQ5P9Nut0njvz+l0Kj6+k87YzvJMDKg/bzyJ5xOVx1PMuS2aj0D9UbClPOOE52oa+q1/j+cVxZkZnqLJmcOzy3lOmsMjiz8n3sd+8O3F/xzPfR5PcYVmnnRifMpzFLfT2Uj+POHZ9Y/nf5DnKZcnH1lu5EnmUrQ73vuZtOHbaTtp4beCCTG+w3+Q5z6XJ8/ZmXimxrNzIi31zWVMWpjTg9/0giv5c+3FVX/798/zzLWf4pNgY+3lsk+I9pMIvz2bpjV/sVp9JMclraNu8m+/6m///nmeR/TZtrUXvpPfV/4Ure7maTcef+9uhFXvtBP6Hv8Ev5rcLKHtG9UsqzPWKqOmLa1IYyekepl5bk5OTk55+g8EAvH5qBEYngAAAABJRU5ErkJggg=="
class="logo" alt="" style="width:400px;height:150px;">
<!-- Beautify This -->
<div class="log-form">
<h2>Enter your details</h2>
<form name="f1" method="post" onsubmit=“validateform()">
Name: <input type="text" name="name"><br/>
Password: <input type="password" name="password"><br/>
</form>

<form name="f3" onsubmit=“validate()" >
Number: <input type="text" name="num"><br/>
</form>

<form name="f4" method="post" onsubmit="validateemail();">
Email: <input type="text" name="email"><br/>
</form>

<textarea name="message" id="message" cols="35" rows="4" placeholder="enter message"></textarea></br>
<p>Age:</p>
<input type="radio" id="above" name="age" value="above">
<label for="above">Above 18</label>
<input type="radio" id="below" name="age" value="below">
<label for="below">Below 18</label></br>
<button type="submit" class="btn">Submit</button>
<a href="#">Already Register?</a>
</form>
</div>
<!-- Beautify Ends -->
</body>
</html>