03-18-2011, 08:46 AM
[eluser]froginvasion[/eluser]
I'm trying to use both functions in one, as it would make it easier than just writing plain HTML tags. The code that causes me trouble is this one:
It should repopulate the checkboxes at validation, but it only sets back one of them, and never more than one. But I don't know why...
I'm trying to use both functions in one, as it would make it easier than just writing plain HTML tags. The code that causes me trouble is this one:
Code:
<fieldset>
<legend>locaties</legend>
<?php echo form_checkbox('locatie','oudenaarde', set_checkbox('locatie','oudenaarde'));?>3-7-2011 te Oudenaarde <br />
<?php echo form_checkbox('locatie','arendonk', set_checkbox('locatie','arendonk'));?>31-7-2011 Arendonk<br />
<?php echo form_checkbox('locatie','westdonk', set_checkbox('locatie','westdonk'));?>11-09-2011 Westhoek – MERKEN<br />
</fieldset>
It should repopulate the checkboxes at validation, but it only sets back one of them, and never more than one. But I don't know why...