Hey guys! I need to know how to make a login panel, that is quite simple. If anyone could help me I would be really happy. +REP for Help!
Printable View
Hey guys! I need to know how to make a login panel, that is quite simple. If anyone could help me I would be really happy. +REP for Help!
thanks for that, but where do I download it?
Spoon fed: http://www.phptoys.com/download.php?view.19
Yeah, I know but ether doesn't matter.
Yeah it does, you asked how to make one.. downloading and making one are two separate things.
Learn a language PHP is probably the best for multiple logins with the use of mysql, you can also use PHP to create a simple login which gets the information locally (stored in the page) or use different languages such as javascript where you can use cookies to log in. I suggest PHP and sessions (: for some PHP help..
Hopefully that will get you started also there is no form.. read up about PHP and HTML especially HTML Forms..Code:<?php
session_start();
$username = "Admin";
$password = "Password";
if (isset($_POST['login']) && ($_POST['username'] == $username && $_POST['username'] == $username)) {
$_SESSION['username'] = $username;
} else {
echo "Sorry, wrong details!";
}
?>
Goodluck (:
He's made a a very simple one that has a set password, not MySQL :P So he's checking that the username is the same as the variables and then that they match up with the two they should be. I think?
I think he meant for it to be $_POST["password"] == $password on the second part, but copy and pasted it and forgot to change it.