Tags

, , , ,

Hello Guys, Here I m Writing A Simple Login Script for a User…

<HTML>

<HEAD> LOGIN SCRIPT

<SCRIPT LANGUAGE=”JavaScript”>

function animate()
{
window.document.title=textDisplay[y].substr(0, x)+””;
if (z==0) x–;
if (z==1) x++;
if (x==-1) {z=1;x=0;y++;y=y%textCount;}
if (x==textDisplay[y].length+10) {z=0;x=textDisplay[y].length;}
parent.window.document.title=textDisplay[y].substr(0, x)+””;
setTimeout(“animate()”,75);
}

</SCRIPT>
</HEAD>

<BODY onLoad=”animate();>

<form name=”login” action=”validate.php” method=”post”>

<table cellpadding=”4″>

<tr>
<td><font face=”verdana” size=”2″>Username :</font></td>
<td><input type=”text” name=”username” size=”20″ maxlength=”25″ tabindex=”1″><br></td>
</tr>
<tr>
<td><font face=”verdana” size=”2″>Password :</font> </td>
<td><input type=”password” name=”password” size=”20″ maxlength=”25″ tabindex=”2″></td>
</tr>
</table>
<br>
<center><input type=”submit” name=”submit” value=”SUBMIT”></center>
</form>
</BODY>

</HTML>

Guys What I do is I have Written the code of simple php login script. here the Cursor will be shown on the Username Default, for that I have written a animate() javascript.

I hope you all are familiar with this, Next I will Validate the Username and Password with the database and redirects the user to its home page.

Advertisements