开发者

static value in a form

开发者 https://www.devze.com 2023-01-14 09:41 出处:网络
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 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

精彩评论

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