Hi all
I have made a ajax search on frontend to mysql tables that is working fine till i decided to place some other options to the search. In this case i'm using radiobuttons to change the way that the seach is made (text or tags)... i have two radio buttons like this:
<div class="btn-group btn-group-horizontal" data-toggle="buttons">
<label class="btn active">
<input type="radio"
name='rdTipo'
data-request="onTipo"
checked
value="normal">
<i class="fa fa-circle-o"></i><i class="fa fa-dot-circle-o"></i> <span>Normal</span>
</label>
<label class="btn">
<input type="radio"
name='rdTipo'
data-request="onTipo"
value="etiqueta">
<i class="fa fa-circle-o"></i><i class="fa fa-dot-circle-o"></i><span>Etiquetas</span>
</label>
</div>
and in a php block when using request-data (i tryied on other event handler too)
function onTipo(){
$this['testeradio'] = input('rdTipo');
}
And i can't get the values of the radio buttons using input('xxxx') and also testing with Input::all() on php block of the page with same result... In first i tried without the data-request as i have other on input text (and this one works fine) but with this option i can't get the values too...
Any help or ideia will be appreciated.
TIA
JL
Last updated