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

How to log in through account and password in html

coldplay.xixi
coldplay.xixiOriginal
2021-03-04 15:03:2513117browse

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>

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!

Statement:
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
Previous article:How to add songs to htmlNext article:How to add songs to html