Home > Web Front-end > HTML Tutorial > How to log in through account and password in html

How to log in through account and password in html

coldplay.xixi
Release: 2023-01-03 09:27:38
Original
13170 people have browsed it

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.

How to log in through account and password in html

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>
Copy after login

2. Click submit The data will be submitted to login.php for processing, and the running results are as follows:

How to log in through account and password in html

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template