What you need to know to write the registration/authorization on PHP?

There is a specific assignment: to write a registration/authorization. Since time to execution is not much, want to know what you want to read specifically for the job. I know that you want to connect to databases. It is clear that you need to know the General basics of programming (variables, loops, conditionals, loops, etc.).
March 23rd 20 at 19:26
2 answers
March 23rd 20 at 19:28
1. Form, method POST
2. Password hashing.
4. PDO with prepared statements
5. Session

To register, draw a shape, after receiving HaShirim password and write it to the database using PDO
To authorize draw a form with email and password, emails requested from the database ID and password meet the password hash, if everything is OK - write in the session ID of the user.
On all pages that need to be protected, check the existence of ID in the session.

As a bonus, you can check the data entered and the error output. But it is optional, you first need to do basic functionality

- Password hashing https://php.net/password_hash
- INSERT using PDO https://phpdelusions.net/pdo_examples/insert
Proverka password https://phpdelusions.net/pdo_examples/password_hash
Session https://www.php.net/manual/ru/session.examples.bas...
March 23rd 20 at 19:30
Mysql query mysql_query or if you have experience with OOP, PDO, html, css, regular expressions for data validation
The muscle is already dead - Garrison.Pouros commented on March 23rd 20 at 19:33
@Garrison.Pouros, what is not dead? - lisa_Mraz commented on March 23rd 20 at 19:36
@lisa_Mraz, I mean the extension itself. It drank. PDO as for me most it. Of course many other places and mysqli procedural to meet - Garrison.Pouros commented on March 23rd 20 at 19:39
Alexander, that's why you are trying to answer, if you know only about 10 percent of the response, and they are wrong? - Aurelie commented on March 23rd 20 at 19:42
@Aurelie, you write the authorization/registration only with what I wrote? - arno10 commented on March 23rd 20 at 19:45
It is not necessary. On the Internet way too much bad code - Aurelie commented on March 23rd 20 at 19:48

Find more questions by tags PHP