Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected option not go by post in form php #198

Open
Kordianz opened this issue Mar 18, 2022 · 0 comments
Open

Selected option not go by post in form php #198

Kordianz opened this issue Mar 18, 2022 · 0 comments

Comments

@Kordianz
Copy link

Kordianz commented Mar 18, 2022

Hi, I try use this plugin.
After select a few options, and submit form by php (codeigniter 4), in controler I get only one selected row.

My code of form:
` ```

            <div class="card card-default">
                <div class="card-header">
                    <h3 class="card-title">Zgłoszenia kontrola jakości do zamknięcia</h3>
                    <div class="card-tools">
                        <button type="button" class="btn btn-tool" data-card-widget="collapse">
                         <i class="fas fa-minus"></i>
                        </button>
                         <button type="button" class="btn btn-tool" data-card-widget="remove">
                         <i class="fas fa-times"></i>
                        </button>
                    </div>
             </div>
      <!-- /.card-header -->
            <div class="card-body">
                <div class="row">
                <div class="col-12">
                    <div class="form-group">
                    <label>Wybierz zgłoszenia</label>
                    <select class="duallistbox" multiple="multiple" >
                        <?php  foreach($jobs as $row):  ?>
                        <option value="<?php  echo $row['IdBazy'].''.$row['id_ZGLOSZENIA']; ?>"><?php  echo $row['NrZgloszPrac'].', '.$row['data_zgloszenia'].', '.$row['nieruchomosc']; ?></option>
                        <?php endforeach; ?>
                    </select>
                    </div>
                    <!-- /.form-group -->
                </div>
                <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.card-body -->
      <div class="card-footer">
       
      </div>
    </div>
                    
                        
                    <?php  echo form_submit(['value'=> 'Zamknij','class'=>'btn btn-danger jme-md-2 p-2 m-2']);?>
                    </div>
                    <?php echo form_close(); ?>`

//Bootstrap Duallistbox $('.duallistbox').bootstrapDualListbox({ nonSelectedListLabel: 'Nie wybrane', selectedListLabel: 'Wybrane', preserveSelectionOnMove: 'moved', moveOnSelect: false });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant