开发者

static value in a form

I have 开发者_如何学Goa form with list of fields :

  • last name
  • email
  • country
  • message

Before sending the form, i want to joint to it a static value : destination=marketing. i don't want it to be visible in my form. how would this be done ?


Input hidden is what you need :

<input type="hidden" name="destination" value="marketing" />


<input type="hidden" name="destination" value="marketing" />

or you can add this variable when you process the form server-side


With a hidden input. Or put it in the session instead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜