开发者

User can copy hidden field data?

I have a form wit开发者_开发知识库h many hidden fields. When a user selects text from the form and pastes it in to a text editor - they can see the values of the hidden fields. This doesn't happen to everyone. However, for the users that are experiencing this, they experience it across all browsers. I haven't been able to replicate this. Any clues as to what might be the problem?

Cheers,


How did you hide the fields? If you used CSS visibilty:hidden then the fields still take up space on the rendered page and may or may not be selectable. To hide fields with CSS use display:none which should prevent the browser from allocating rendered space on the page.

Remember that no matter how they're hidden, "view source" will reveal them, so don't put security-sensitive data in them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜