static value in a form
I have 开发者_如何学Goa form with list of fields :
- last name
- 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.
精彩评论