+ 1

Login page

how to create login page with php ?

2nd Jun 2017, 8:39 AM
Nalin Sahu
Nalin Sahu - avatar
1 Answer
+ 1
Nalin, when you develop public available site - don't forget: 1. https connection from form to webserver (your site sends login and password) 2. check if cookies are enabled in user web browser 3. filter what user sends to your script, this example allows for sql injection: $username = $_POST['username']; $password = $_POST['password']; $query = "SELECT * FROM `user` WHERE username='$username' and password='$password'";
2nd Jun 2017, 11:13 AM
Michal
Michal - avatar