记住来自其他网站的用户输入
一个注册网页给我留下了深刻的印象,它知道我所有的姓名、地址、电子邮件、电话号码。 这是我第一次访问这个网站。 我猜它可能会记住来自其他具有相同 id 或名称的网站,例如 id="firstname" id =“电话”,但我不知道到底发生了什么。如何实施?
编辑 - 添加更多信息。
我什么也没做,值只是显示为页面加载。 这是我从查看源代码中得到的。
<div class="ui-form-field" id="ohfirstNameField">
<input class="ui-form-field-text ui-corner-all" name="ohfirstName" maxlength="4000" type="text" id="ohfirstName" required="required" value="Sarawut" />
</div>
A registration webpage impressed me by knowing all my name, address, email, telephone number.
This is the first time i visit this website.
I guess that it might remember from other website with same id or name such as id="firstname"
id ="telephone" but i don't know exactly what is going on. How to implement this ?
Edit - Add more information.
I have done nothing, value is just appeared as page load.
This is what i got from view source.
<div class="ui-form-field" id="ohfirstNameField">
<input class="ui-form-field-text ui-corner-all" name="ohfirstName" maxlength="4000" type="text" id="ohfirstName" required="required" value="Sarawut" />
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前也见过这种情况,这是我的理论。我相信浏览器正在为您存储基本信息。一个单独的网站无法读取任何不是自己生成的cookie(这将是一个巨大的安全问题),所以不可能是这样。
我认为浏览器存储的只是几个字段。我不确定如何获得它们。您说的是 Google Chrome 吗?
I have seen that before as well, and here is my theory. I believe the browser is storing basic information for you. A separate website cannot read any cookies not generated by itself (that would be a huge security issue), so that can't be it.
I think it is just a few fields that the browser stores. How to get at them, I am not sure. Is this Google Chrome you're talking about?
您可以使用 OpenId 来获得类似的效果。系统将询问用户是否允许身份验证站点访问其数据,但如果承认,您将能够使用用户的数据预先填写表单。
You could use OpenId to get a similar effect. The user will be asked, if he allows the authenticating site to his data, but if admits it, you will be able to prefill your form with data from the user.