I need help in getting the value of the radio button and using it as a variable in php cake controller.
<li class="search-pref-list-items__item"><label><input type="radio" name="pref" value="1">a</label></li>
<li class="search-pref-list-items__item"><label><input type="radio" name="pref" value="2">b</label></li>
<li class="search-pref-list-items__item"><label><input type="radio" name="pref" value="3">c</label></li>
I already tried $this->request->data but it only works on textbox, $_GET[] and $_POST[] are also now working
how will I do this?