[eluser]kevinprince[/eluser]
I am using the new Form Validation class on a project and I am having issues with the form.
When I load the form for the first time:
Code:
<?php echo set_select('acid', $item['acid']); ?>
Seems to be setting every item to selected even I set the default to FALSE.
Full Select Box Code
Code:
<select name="acid" id="acid" class="medium">
<option value="0" <?php echo set_select('acid', '0'); ?>>Select an Option</option>
<?php foreach ($accounts as $item): ?>
<option value="<?= $item['acid']; ?>" <?php echo set_select('acid', $item['acid']); ?>>
<?= $item['account_name'] ?> | <?= $item['address'] ?>
</option>
<?php endforeach; ?>
</select>
When reloading on the repopulate, it actually defaults to nothing selected.
Quite confused, help appreciated.