Unwanted underscores appearing at the end of array submissions


#1

I am able to successfully post data to my form, but when I view the submission the form field has an extra underscore at the end.

My post data looks like this:
favorite_neighborhood[]=rivernorth&favorite_neighborhood[]=streeterville

But the submission shows a field name of
favorite_neighborhood_

What can I change about my post data to get rid of that extra underscore?


#2

I resolved this issue. The post data does not expect the array formatting for checkbox inputs, and that (I assume) was creating the extra underscore. The proper way to submit the data is

favorite_neighborhood=rivernorth&favorite_neighborhood=streeterville