Home >Web Front-end >HTML Tutorial >How to log in through account and password in html
html Method to log in through account and password: 1. Use the form form event to submit the simplest account and password login data; 2. Click to submit the data and it will be submitted to login.php for processing.
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.
htmlHow to log in through account and password:
htmlThe simplest account and password login page design can be done using a form, but it does not have the ability to judge the correctness of the account and password. Logical capabilities require background language processing feedback.
Tool materials: editor, browser
1. Use the form form event to log in with the simplest account and password to submit the data. The code is as follows:
<!DOCTYPE html> <html> <body> <form action="login.php"> 用户名: <input type="text" name="firstname" value="请输入账号"> 密码: <input type="text" name="lastname" value="请输入密码"> <input type="submit" value="Submit"> </form> </body> </html>
2. Click submit The data will be submitted to login.php for processing, and the running results are as follows:
Related learning recommendations: html video tutorial
The above is the detailed content of How to log in through account and password in html. For more information, please follow other related articles on the PHP Chinese website!