MySQLi jump select menu to filter a recordset?
I have a standard menu that submits to the same page to filter a recordset but that also includes two hidden fields to blank filter two other fields...
<form action="car-competition.php" method="post" class="form-inline">
<label for="catID" class="sr-only">Category</label>
<select class="form-control" id="catID" name="catID">
<option value="0">All Categories</option>
<option value="<?php echo($rsCATS->getColumnVal("dreamcarCATID")); ?>"><?php echo($rsCATS->getColumnVal("dreamcarCATEGORY")); ?></option>
$rsCATS->moveFirst(); //return RS to first record
<button type="submit" class="btn btn-info">View</button>
<input type="hidden" name="mID" id="mID" value="0">
<input type="hidden" name="tID" id="tID" value="0">
The client wants this changed to a jump menu with no button so that, upon selection, it immediately runs the query as opposed to requiring the client to physically click the button.
How do I achieve this? Any tutorials I've seen simply add a URL into the option value attribute however that will change the query to GET as opposed to POST plus it doesn't carry the other two hidden fields.
Would appreciate your advice on that.