Присоединяйтесь — мы покажем вам много интересного
Присоединяйтесь к ОК, чтобы подписаться на группу и комментировать публикации.
Комментарии 3
<form name "login"/>
<center><h1><b1>Admin<h1><b><center>
<font size="2" color="red" >
First name:<input type="text" name="firstname"> <br>
<br>
Last name: <input type="text" name="lastname"> <br>
<br>
Username: <input type="text" name="userid"> <br>
<br>
Password: <input type="password" name="pswrd"> <br>
<br>
<input type="radio" name="sex" value="male">Male
<input type="radio" name="sex" value="female">Female<br>...Ещё<h2/>
<form name "login"/>
<center><h1><b1>Admin<h1><b><center>
<font size="2" color="red" >
First name:<input type="text" name="firstname"> <br>
<br>
Last name: <input type="text" name="lastname"> <br>
<br>
Username: <input type="text" name="userid"> <br>
<br>
Password: <input type="password" name="pswrd"> <br>
<br>
<input type="radio" name="sex" value="male">Male
<input type="radio" name="sex" value="female">Female<br>
<br>
<input type ="button" onclick= "check(this.form)" value ="Login"/>
<input type ="reset" value="Cancel"/>
</form>
<script language="javascript">
function check(form)/*function to check userid & password*/
{
/*the following code checkes whether the entered userid and password are matching*/
if(form.userid.value=="user"&& form.pswrd.value=="password"
{
window.open('target.html'
}
else
{
alert("Error Password or Username "
}
}
</script>
</body>
</html>