如何使用html,css,javascript和php&mysql作为后端为网站创建登录页面? [关闭]

如何使用html,css,javascript和php&mysql作为后端为网站创建登录页面?  [关闭]

问题描述:

I am new to web development. I want to develop the front page of my website through which users can enter their username and password and login to their accounts. How should I accomplish that?

我是网络开发的新手。 我想开发我网站的首页,用户可以通过该首页输入用户名和密码并登录他们的帐户。 我该怎么做? p> div>

You can try to make your own implementation but there are a lot of security risks to worry about. Particularly things like SQL Injection. There are frameworks you can use to implement login pages that take care of the security for you. You just need to find the one that works best for you. Zend Framework is one example of a PHP compatible framework that does authentication.

Here is a decent starting point if you really want to write your own log-in/out routines..

https://www.developphp.com/video/PHP/Log-In-Form-Log-Out-Script-Cookies-Sessions-User-Profile

All that is lacking on that page is the layout of the database.