nitrogen / simple_bridge

A simple, standardized interface library to Erlang HTTP Servers.
MIT License
112 stars 76 forks source link

support for checkbox groups - multiple params with same names #28

Closed brigadier closed 10 years ago

brigadier commented 10 years ago

A set of xxx_param_group functions for this case:

<input type="checkbox" name="chk_group" value="value1" />Value 1
<input type="checkbox" name="chk_group" value="value2" />Value 2
<input type="checkbox" name="chk_group" value="value3" />Value 3

The new functions return list of values of all request get/post/get++post params with given name. Default return value for "no parameters found" case is [], unlike xxx_param functions, where default return value is 'undefined'.

New functions, so no backward incompatibility.

nitrogen commented 10 years ago

I'm okay with this. I have one request: would you be willing to modify the README to go along with these changes? Just add a one-line description along with the other text.

choptastic commented 10 years ago

Fantastic! I'll be merging this today!

choptastic commented 10 years ago

Merged: https://github.com/nitrogen/simple_bridge/commit/d2478b9e7ab7767ca53d0b3a7560ba32025d9681