例如,假设您不得不呈现一个动态表单,并隐藏基于用户权限的输入字段。
For example, suppose you have to render a dynamic form and hide input fields based on user permissions.
此函数的另一个作用是根据其他表单字段值填充任何隐藏的INPUT元素。
Another use of this function is to populate any hidden INPUT elements based on other form field values.
然而,这种解决方案有些简陋,很像使用隐藏的表单字段在请求之间传递值。
This solution is rather crude, however, closely resembling the use of hidden form fields to pass along values between requests.
在表单的顶部添加一些隐藏字段。
会话标识可以用三种方式中一种进行传递:作为HTML表单中的参数(通常是隐藏字段);作为附加在查询字符串后的参数;或者作为cookie 的属性。
The session ID can be passed in one of three ways: as a parameter in an HTML form (typically a hidden field); as a parameter appended to the query string; or as an attribute of a cookie.
在客户端用HTTPcookie或者隐藏表单字段存储会话状态有很大的安全风险——它将应用程序的一部分内部内容暴露给了非受信任的客户层。
Storing session state in the client using HTTP cookies or hidden form fields has significant security risks — it exposes a part of your application internals to the untrusted client layer.
JSF通常通过会话、隐藏表单字段、cookies等进行实际的存储和状态管理。
JSF does the actual storage and state management, typically though a session, a hidden form field, cookies, etc.
此子表单将四个隐藏字段添加到最终提交给服务器的表单。
This subform adds four hidden fields to the form that is eventually submitted to the server.
当整个表单提交到服务器时,隐藏的文本字段提供了一个存储Airport的id的位置。
The hidden text field gives me a place to store the id of the Airport when the entire form is submitted back to the server.
X Forms为浏览器带来的最有趣的特性之一是将表单内容(字段中的所有数据,以及存储在数据模型型中的“隐藏”数据)保存到文件中。
One of the interesting features that XForms brings to your browser is the ability to save a form's contents (any data in the fields, plus any "hidden" data stored in the data model) to a file.
噢)此外,使用cookie或者隐藏表单字段很混乱,容易出错,并且脆弱(如果用户禁止在浏览器中使用 cookie,那么基于cookie的方法就完全不能工作)。
Oops.) Besides, using cookies or hidden form fields is messy, error-prone, and brittle (and a cookie-based approach won't work at all if the user has disabled the use of cookies in the browser).
为 EntryController.groovy 提供 author.id 字段的最快方式是将一个隐藏字段添加到表单中,如清单 3 所示。
The quickest way to give EntryController.groovy the author.id
它会产生一个隐藏的表单字段(防伪标记),提交表单时验证。
It generates a hidden form field (anti-forgery token) that is validated when the form is submitted.
当表单提交时我读隐藏表单字段与用户的会话令牌比较。
When form is submitted I read hidden form field and compare it with token in user session.
当表单提交时我读隐藏表单字段与用户的会话令牌比较。
When form is submitted I read hidden form field and compare it with token in user session.
应用推荐