php-filter-dropdown ohne submit-button

ive bekam Sie den code unten eingerichtet. aber wie Filtere ich das Ergebnis ohne submit-button und filtern Sie das Ergebnis, basierend auf den dropdown-Wert (id des Benutzers)?

form method="post" name="report_filter" action="<?= $_SERVER['PHP_SELF'];?>" >
select name="name" onchange="report_filter.submit();">
<option value="--">Filter by:</option>
<option value="1">Andi</option>
<option value="2">Katy</option>
<option value="3">Max</option>
<select>
PHP //
<? if(isset($_POST['submit'])):
    $mem->StaffTodayFilterSummary($_GET('value')); 
   else :
      $mem->StaffToday(); 
   endif;
?>
</form>
InformationsquelleAutor tonoslfx | 2011-04-07
Schreibe einen Kommentar