Jump to content
  • 0

Domain Order Form Using Select Instead Of Checkbox


Question

Posted

Hi guys,

 

I need help on how to use select dropdown instead of checkbox on lookup.pdt

<div class="form-group tlds">
    <?php foreach ($tlds as $tld=> $pack) { ?>
    <label class="checkbox-inline">
        <?php $this->Form->fieldCheckbox("tlds[]", $tld, in_array($tld, $this->Html->ifSet($vars->tlds, array()))); ?>
        <?php $this->Html->_($tld);?>
    </label>
    <?php } ?>
</div>

Any help/advice would be great.

6 answers to this question

Recommended Posts

  • 0
Posted

Thanks for the reply. And because it is under foreach, all tlds became a select if I use fields elect. How can I use it in foreach and make sure all tlds is labeled as option.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...