In this section, I will tell you about how to create Simple Login form in PHP without Database.
This is the PHP code here
Baca selengkapnya...
- This form must have JavaScript scripting to validate the initial (field may not empty, the input id and password must be letters).
- If the field is empty and direct in-submit, return the cursor to focus the first field (id)
- There is a server-side validation (PHP) to ensure that the value the field is a string.
- If the value id and password in accordance with pre-defined value in the variable, come up with a welcome message and print the value of the id. Conversely, if doesnt not match, it will display the failure message.
This is the PHP code here
preview: