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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...