Create Simple Login Form in PHP without Database

In this section, I will tell you about how to create Simple Login form in PHP without Database.
  • 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 HTML code here
This is the PHP code here

preview:

Baca selengkapnya...

Generate Table in HTML and PHP



Now I'll to tell you about how to create Table
at the first time, create new HTML file this is the code:



after that, create a PHP file, give name to thisi php file: tbl.php
this is the code:

Baca selengkapnya...