[eluser]Dizza[/eluser]
[quote author="kanjimaster" date="1336508265"]I guess you could use jQuery to update the anchor's href attribute when the value of the dropdown changes, but why not just use a submit button for the form instead of an anchor, so that the data is passed in the normal way?[/quote]
But how do i get the value from the dropdown then?
If i do it like this
Code:
<?php echo form_open('aanwezigheid/formulier/'.$klasdropdown['id'].''); ?>
<?php echo "<br />"; echo form_dropdown('klasdropdown', $klasdropdown, ''); ?>
<?php echo form_submit('submit', 'Voeg klas toe'); ?>
the url output is:
Code:
http://afstuderen.dev/index.php/aanwezigheid/formulier/Array
The array should be the id of the selected option