0

Adding Combobox in new customer form For country,state,city in point of sale using php

<div class="field_row clearfix">
    <?php echo form_label($this->lang->line( 'common_city' ) . ':', 'city' ); ?>
    <div class='form_field'>
        <?php echo form_input(array( 'name'=>'city','id'=>'city','value'=>$person_info->city));?>
    </div>
</div>

In this code it using text box instead of that i need to implement Combobox

Arturs
  • 1,258
  • 5
  • 21
  • 28
balaji
  • 291
  • 1
  • 4
  • 13

1 Answers1

1

i think you are using codeigniter , use form_dropdown

try

<?php echo form_dropdown('dropdown',array('name'=>'city','id'=>'city','value'=>$person_info->city),'name'); ?>

check this

Codeigniter Form Helper

Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193