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>