当表单是不可编辑的,由于有一个隐藏域,这个参数仍然会出现。
When the form is not editable, the parameter is still present, thanks to the hidden field.
您还将了解如何创建两个版本的表单,其中一个提供输入域让用户输入数据,另一个使用隐藏域并以不可编辑形式显示数据。
You'll also learn how to build a form that has two versions, one letting the user enter data in the input fields and the other using hidden fields and presenting the data in a non-editable manner.
清单10显示的是表单的第一个域,如果edit _ mode是true,它就是一个输入框;如果edit _ mode是false,它就是一个隐藏域。
Listing 10 shows the first field of the form, which is an input box if edit_mode is true or a hidden field if edit_mode is false.
应用推荐