/    Sign up×
Community /Pin to ProfileBookmark

Help: I want to add a login from and just to make it clear tell me what goes in…

Help: I want to add a login from and just to make it clear tell me what goes in <head> </head> and <body> </body>!
<head> </head> and <body> </body>!
<head> </head> and <body> </body>!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@dthurman1432Jun 02.2006 — The only issue with doing a script like this for a login page is anyone who knows a little view source code action will be able to view the required user and pass. The only way around this is find a script that encrypts the user and pass and do it in ASP.


<head>

<script language="javascript">

function pasuser(form) {

if (form.id.value=="JavaScript") {

if (form.pass.value=="Kit") {


location="page2.html"

} else {

alert("Invalid Password")

}

} else { alert("Invalid UserID")

}

}

//-->

</script>

</head>

<body>

<center>

<table bgcolor="white" cellpadding="4" border="1">

<tr>

<td colspan="2"><center><h2><i><b>LoginArea</b></i></h2></center></td>

</tr>

<tr><td><h3><i><b>UserID:</b></i></h3></td>

<td><form name="login"><input name="id" type="text"></td>

</tr>

<tr>

<td><h3><i><b>Password:</b></i></h3></td>

<td><input name="pass" type="password"></td>

</tr>

<tr>

<td height="25" colspan="2" align="center">

<input type="button" value="Login" onClick="pasuser(this.form)">

&nbsp;&nbsp;&nbsp;<input type="Reset"></form></td>

</tr>

</table>

</center>

</body>
Copy linkTweet thisAlerts:
@aangavatar101authorJun 02.2006 — Wow! It works this time!!! I tryed everything, but you are an HTML geek!!! (or smart ?)
×

Success!

Help @aangavatar101 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...