When you login, it tries to take you to main.php (my test page), line 11 of what I posted.
As for adding more users, you need to change line 5. Currently it is:
- Code: Select all
if ($_POST['username'] == "test" && $_POST['password'] == "test")
To add another use, change it to this:
- Code: Select all
if($_POST['username'] == "test" && $_POST['password'] == "test")($_POST['username'] == "test2" && $_POST['password'] == "test2")
The `||` operator is an `or` statement, so you can just add more lines.
When I've got a bit more time, I'll redo this properly, pulling username/hashes from a file/database, but I'll a littlle busy at the moment.