Hi there!
I know the best way to do this would be PHP database back end, but I haven't got one, so i am trying to get it working through JavaScripting.
I have used the following script for the logon:
CODE
<form>
<p class="style2">Username :
<input type="text" name="text2">
</p>
<p><span class="style2">Password :</span>
<input type="password" name="text1">
<input type="button" value="Login" name="Submit" onclick=java script:validate(text2.value,"Mike",text1.value,"Password") >
</p>
</form>
<script language = "javascript">
function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load('21442.html');
else
{
load('unavailable.html');
}
}
function load(url)
{
location.href=url;
}
</script></p>
This works fine, but it only works for one user. Could someone help me with a way of having several different users/usernames using the above code?
Cheers,
Mike