Hello,
I follow your code and I made the search work.
in where sql:
in header:
This works great when I type in my search string in the search box and then press enter. Now, I want to make the search as a dropdown list. How do I do this? Do I need to add a "submit" button? and how?
Thank you.
I follow your code and I made the search work.
in where sql:
<?php
if(JRequest::getVar('division')){
?>
WHERE select_2 =
"<?php echo JRequest::getVar('division') ; ?>"
<?php
}
?>
in header:
<input type="text" name="division">
This works great when I type in my search string in the search box and then press enter. Now, I want to make the search as a dropdown list. How do I do this? Do I need to add a "submit" button? and how?
Division: <select id="division" size="1" name="division">
<option value="DivisionA">DivisionA</option>
<option value="DivisionB">DivisionB</option>
<option value="DivisionC">DivisionC</option>
<option value="DivisionD">DivisionD</option>
<option value="DivisionE">DivisionE</option>
<option value="DivisionF">DivisionF</option>
</select>
Thank you.