How to Create a Login Form

<html>
<head>
    <title>all</title>
<script language="javascript">
function can()
{
    document.myform.txtid.value=""
    document.myform.txtpass.value=""
    document.myform.txttype.value=""
    document.myform.txtid.focus()
}
function cli()
{
    var id,pass,ty
    id=document.myform.txtid.value
    pass=document.myform.txtpass.value
    if(id=="")
    {
        alert("First Enter Your User Id")
        document.myform.txtid.focus()
        return false
    }
    else if(pass=="")
    {
        alert("Enter Your password")
        document.myform.txtpass.focus()
        return false
    }
   
    else
    {
        return true
    }
}

</script>
</head>
<body background="7.JPG" >
<center>
<img src="edu.jpeg" width=80><font size=10 color="maroon">RK UNIVERSITY</font><img src="edu.jpeg" width=80></center>
<hr size=5 color="blue">
<marquee behavior="alternate"><img src="da.gif" width=50><font size=10 color="red">Login Form</font><img src="da.gif" width=50></center></marquee>
<hr size=5 color="blue">
<img src="rk.jpg" width=200 height=200 align="left">
<img src="rk.jpg" width=200 height=200 align="right">
<center>
<form name="myform"  method=post action="login.php" onsubmit="return cli()">
<table border=0>
<tr>
    <td><font size=5 color="aqua">User Name </font></td>
    <td><input type="text" name="txtid"></td>
</tr>
<tr>
    <td><font size=5 color="aqua">PassWord </font></td>
    <td><input type="password" name="txtpass"></td>
</tr>
</table>
<br><br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<input type="submit" value="Login" >&nbsp&nbsp&nbsp&nbsp&nbsp
<input type="button" value="Cancel" onclick="can()">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp

</form>
<br><br><br><br><br>
<hr size=5 color="blue">
<font size=5 Color="blue" ><b>Devloped By:- Raval Riddhi k <br><br>MCA 3<SUP>rd</sup>sem</b></font>
<hr size=5 color="blue">

</body>
</html>
How to Create a Login Form How to Create a Login Form Reviewed by Unknown on 21:18:00 Rating: 5

No comments:

Powered by Blogger.