Hi everyone!
Im buiding a small website for my local club, we would like that members could see their history/info/payments.
What i would like to have would be a login screen that depending on username/password would take the user to their page.
My website is hosted on a host with PHP, MYSQL etc, any help will be greatly apreciated, im new to this stuff.
I was thinking of creating a page for each member and then from the login screen depending on usename/password the user wold be redirected to "his" info, is this the easier way?
Thanks
+ Reply to Thread
Results 1 to 2 of 2
-
I love it when a plan comes together!
-
<!-- TWO STEPS TO INSTALL MULTIPLE USERS:
1. Copy the first code into the HEAD of your HTML document
2. Put the last coding into the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="member1" && password=="password1") { window.location="page1.html"; done=1; }
if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>
<BODY>
<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2">Members-Only Area!</font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="Login!" onClick="Login()"></td></tr>
</table>
</form>
</center>
I love it when a plan comes together!
Similar Threads
-
Password protect my uploaded videos
By Maurice123 in forum Video Streaming DownloadingReplies: 7Last Post: 12th Oct 2009, 16:40 -
How to remove system password login screen
By pantangs in forum ComputerReplies: 13Last Post: 13th Feb 2009, 22:19 -
login not keeping password....
By rubberman in forum ComputerReplies: 3Last Post: 25th Jul 2008, 14:13 -
password protect movies
By hackerzlab in forum Newbie / General discussionsReplies: 9Last Post: 31st Oct 2007, 10:47 -
How do I password protect data CD or DVD?
By Big_Boss in forum Newbie / General discussionsReplies: 4Last Post: 26th Jul 2007, 20:01