Login page | Sololearn: Learn to code for FREE!

+1

Login page

how to create login page with php ?

6/2/2017 8:39:38 AM

Nalin Sahu

1 Answer

New Answer

0

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'";