如何隐藏表单域 [英] How to hide a form field

查看:67
本文介绍了如何隐藏表单域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表达式网页,它是一个表单(注意它是从模板创建的),在我们创建表单后,我们手动将id字段的默认值设置为数字,这样当数据发送到数据库时我们可以按这个数字排序。最终用户无需查看此号码。如何隐藏这个字段。

解决方案

给出一种隐藏的类型:
< input type =" hidden"名称= QUOT; SomeName"值= QUOT; someValue中" />

I have a expression web page that is a form(note it is created from a templet) ,after we create the form we manually set the default value of the id field to a number so when the data is sent to the database we can sort by that number. The end user does not need to see this number. How can I hide this field from them.

解决方案

Give a type of hidden:
<input type="hidden" name="SomeName" value="SomeValue" />


这篇关于如何隐藏表单域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆