获取密码后运行函数
我们有脚本 http://site.com/ourscript.php
如何添加类似“输入密码”块在该页面上?
只是一些简单的,也许是弹出窗口。
就像,我们在浏览器中打开页面,我们应该输入密码,如果可以的话 - 函数将运行。
它只能在请求的 php 文件内完成,不应使用 .htaccess
。
谢谢。
We have script http://site.com/ourscript.php
How to add something like "enter password" block on that page?
Just some simple, maybe popup.
Like, we open the page in browser, we should type password, if its ok - function will run.
It has to be done only inside requested php file, .htaccess
should not be used.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这很简单:
This is about as simple as it gets:
这是教程一个基本的身份验证系统。我确信如果您花两分钟谷歌搜索,您会发现大约一百万个预制的、现成的 PHP 登录系统。
如果您想创建自己的用户,则对用户进行身份验证通常需要执行以下操作:
Here's a tutorial for a basic authentication system. I'm sure if you spend two minutes googling, you'll find about a million pre-made, ready-to-go PHP login systems.
If you want to create your own, authenticating a user generally requires the following: