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

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

展开原文

原文

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?

2个回答



您可以尝试自己实施,但需要担心很多安全风险。 特别是 SQL Injection 。 您可以使用框架来实现为您提供安全保护的登录页面。 你只需要找到最适合你的那个。 Zend Framework 是PHP兼容框架的一个示例, 认证。</ 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.



如果您真的想编写自己的登录/注销例程,这是一个不错的起点.. </ p>

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

所有这一切 缺少该页面是数据库的布局。 </ p>
</ div>

展开原文

原文

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.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐