Form element name – array type not working

Question

I have a form with multi-select field

<select <?php echo esc_attr($item['pgggo_grid_sort_and_filter_multiselect']); ?> name="pgggo-taxon-select[]" class="ui fluid dropdown">

a for each loop generates this select field but once the form is submitted
the query variable instead of generating array variables generates a query like this
?pgggo-taxon-select%5B%5D=14&pgggo-taxon-select%5B%5D=1

Please help

0
Latheesh V M Villa 4 years 2019-11-05T06:04:24-05:00 0 Answers 64 views 0

Leave an answer

Browse
Browse