Hello...
I'm trying to set up a connection using CC.
In the header box - in custom listing - I created a form with some radio button and a submit button like this:
I want the WHERE box to depend on users radio choice.
Example: if radio0 is selected echo "`field` = 'Yes' ";
I tried to do it putting in WHERE BOX this code but it doesn't work:
Could someone help me understanding what's wrong?
I'm not so good at coding and maybe if I see some example code for doing this I can adapt it to my needs...
Thanks in advance...
I'm trying to set up a connection using CC.
In the header box - in custom listing - I created a form with some radio button and a submit button like this:
<input type="radio" rel="cat_radio0" name="radio0" value="radio0" /> radio0
<input type="radio" rel="cat_radio1" name="radio1" value="radio1" /> radio1
<input type="radio" rel="cat_radio2" name="radio2" value="radio2" /> radio2
<input type="radio" rel="cat_radio3" name="radio3" value="radio3" /> radio3
<input type="radio" rel="none" name="radio4" value="radio4" /> radio4
<td>
<input type="submit" value="Search" height = "20px" width= "40px" />
</td>
I want the WHERE box to depend on users radio choice.
Example: if radio0 is selected echo "`field` = 'Yes' ";
I tried to do it putting in WHERE BOX this code but it doesn't work:
<?php
if ( isset($form->data['radio0'])) {
echo "`field` = 'Yes'";
}
else {
echo "'xxx'";
}
?>
Could someone help me understanding what's wrong?
I'm not so good at coding and maybe if I see some example code for doing this I can adapt it to my needs...
Thanks in advance...