/    Sign up×
Community /Pin to ProfileBookmark

Password and Login help

I have this script and it works with one password and one username, but i was wondering how i can have it where i’d have people registering to have it. Anyone know how I’d do that?

Here’s the script I use:

<form>
<p>ENTER USER NAME :
<input type=”text” name=”text2″>
</p>
<p> ENTER PASSWORD :
<input type=”password” name=”text1″>
<input type=”button” value=”Check In” name=”Submit” onclick=javascript:validate(text2.value,”USERNAME”,text1.value,”PASSWORD”) >
</p>

</form>
<script language = “javascript”>

function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load(‘URL’);
else
{
load(‘URL’);
}
}
function load(url)
{
location.href=url;
}
</script>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@bwtMar 19.2006 — you will need a serverside eventhough i dont no how to use one i dont think javascript has anyway of doing this
×

Success!

Help @KaLi 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 5.5,
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,
)...