code to check the name and password of a user to simulate entering a system. The message can be "Authorized access" or "access | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

code to check the name and password of a user to simulate entering a system. The message can be "Authorized access" or "access

Help is for PHP

20th Apr 2021, 7:10 AM
Ulises Deolarte
Ulises Deolarte - avatar
1 Answer
+ 2
To simulate only, for learning purposes, you can store names & passwords in an associative array. You then check whether the name & password to be checked exists in the array. I'm not writing the code, I'm giving you an idea.
20th Apr 2021, 8:33 AM
Ipang