Login and Register system created using OOP PHP. An object oriented authentication system gives a user the ability to register,log in, logout and includes features like validation, session saving, salt-hash-encrypted passwords, error handlers.
- PHP
- MySql
- Css
- [Login]
- [Logout]
- [Signup]
In order to run this project you need:
- Basic OOP PHP
- PHP form validation
- PHP error handling
- MySql
- Xampp
Clone this repository to your desired folder:
-
You can download this OOP login and Register system as a ZIP and enter your database details in the dbh.classes.php file.
protected function connect(){
// error handling
try {
$username = "USERNAME GOES HERE";
$password = "PASSWORD GOES HERE";
$dbh = new PDO('mysql:host=HOST NAME GOES HERE;dbname=DATABASE NAME GOES HERE', $username, $password);
return $dbh;
} catch (PDOExceotion $e) {
print "Error! ". $e->getMessage()."<br/>";
die();
}
👤 NATASHA TATENDA CHIROMBE
- GitHub: [@NATASHA-ct]((https://github.com/NATASHA-ct)
- Twitter: [@NatashaChirombe]
- LinkedIn: Natasha Chirombe
Dani Krossing(Tutor)
This project is MIT licensed.
NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.
