0

What should I do in my html page to get the id/value into the @params instance in a controller method on a POST? Ie:

<input type='hidden' id='qgroup' value='blahDeBlah'/>

How would I get the value of id='qgroup' into the @params with the right id as the key?

Martlark
  • 14,208
  • 13
  • 83
  • 99

1 Answers1

3

You need to add the name of the field to use it from the params.

<input type='hidden' name='qgroup' id='qgroup' value='blahDeBlah'/>

zsquare
  • 9,916
  • 6
  • 53
  • 87