ericlbarnes / Statamic-email-form

Email form plugin for Statamic
http://ericlbarnes.com/blog/statamic-email-form-plugin
Other
36 stars 6 forks source link

Adding a simple is_array check to the input. #20

Closed jesseschutt closed 10 years ago

jesseschutt commented 10 years ago

In order to submit a multiselect, or group of checkboxes, the input name needs to be name="somename[]". The form parser was choking on this. So I added a simple conditional to squish the array down to a comma-separated string.

Signed-off-by: Jesse Schutt jesse@trinity-studios.com

ericlbarnes commented 10 years ago

Thanks!