Hiya Guys,
How do I create a Login Page like eBay using sessions, where users click a "Sign-In" link, available on any page (e.g. Main.html), resulting in the page relocating to the Login Page (Login.html).
Upon a user signing in, the Sign-In link page (e.g. Main.html) previously displayed reappears, displaying the users username, along with a "Logout" link.
Upon the users selecting logout (again available on anyway page), the user is redirected to the previously display page.
The following code is what I have currently:
Main.html
Code:
<html>
<head>
<title></title>
</head>
<body>
Sign-In
</body>
</html>
Login.html
Code:
<html>
<head>
<title></title>
</head>
<body>
<form action="Login.php" method="post">
<label>Username:</label>
<input name="Username" type="text" id="Username">
<br>
<br>
<label>Password:</label>
<input name="Password" type="text" id="Password">
<br>
<br>
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>