PHP expert |
|
Waarom zo alles opgepropt scripten, geen wonder dat je dan errors hebt en er niet aan uit geraakt.
<script language="javascript">
function sorteer( sort , order , url )
{
sort = document.getElementById( sort );
sort = sort.options[ sort.selectedIndex ].value;
order = document.getElementById( order );
order = order.options[ order.selectedIndex ].value;
location.href = url + '?sort=' + sort + '&order=' + order;
return;
}
</script>
<script language="javascript"> function sorteer ( sort , order , url ) { order = document.getElementById( order ); order = order.options[ order.selectedIndex ].value; location .href = url + '?sort=' + sort + '&order=' + order ; return; } </script>
En dan op je knop:
<input type="button" onclick="sorteer('mode' , 'order' , 'memberlist.php');" value="sorteren" />
<input type="button" onclick="sorteer('mode' , 'order' , 'memberlist.php');" value="sorteren" />
|