DEV Community

[Comment from a deleted post]
Collapse
 
simonscholz profile image
SIM • Edited

Hi,

just two more little things for correctness.

1. You should not save user input ($_POST) directly into the database.

See: php.net/manual/en/security.databas...
And: php.net/manual/en/mysqli.prepare.php

2. You save the user password also directly into the database, instead you should use php's inbuilt functions password_hash() and password_verify().

See: php.net/manual/en/function.passwor...
And: php.net/manual/en/function.passwor...

Have a nice day :)

Simon

Collapse
 
ramseyrama555 profile image
Ramsey Rama

Thanks so much for the guidance this will go along way