I have a form with 2 checkbox, when I click in some option send "t" and value parameter to my url this is OK, but in second checkbox click, my URL keep with first "t" param eg ?t=man&t=woman, but I would like keep only last click eg: ?t=man
This is a best way to send or should I use Javascript?
My inputs
<input class="form-check-input" type="checkbox" id="t-checkbox" value="man" name="t" onclick="$('.SideFacetContent').submit()" <?= ($param['t'] == 'man' ? 'checked' : ''); ?>>
<input class="form-check-input" type="checkbox" id="t-checkbox" value="woman" name="t" onclick="$('.SideFacetContent').submit()" <?= ($param['t'] == 'woman' ? 'checked' : ''); ?>>