Twitter bootstrap 将所选值从引导选择选择器发送到codeigniter中的控制器

Twitter bootstrap 将所选值从引导选择选择器发送到codeigniter中的控制器,twitter-bootstrap,codeigniter,bootstrap-selectpicker,Twitter Bootstrap,Codeigniter,Bootstrap Selectpicker,我在向codeigniter中的控制器发送selectpicker的值时遇到问题。有人能告诉我如何获取selectpicker的选定值并将其传递给控制器进行进一步处理 这是我的密码:- <!-- <form action="" method="POST"> --> <?php $data = array( 'id'=>'inventory_form',

我在向codeigniter中的控制器发送selectpicker的值时遇到问题。有人能告诉我如何获取selectpicker的选定值并将其传递给控制器进行进一步处理

这是我的密码:-

<!--    <form action="" method="POST">  -->
                <?php $data = array(
                    'id'=>'inventory_form', 
                    ); ?>
                <?php  echo form_open('main/store',$data); ?>
               <div class="table-responsive">
                    <table class="table table-bordered table-hover" id="inv_tbl">
                        <thead>
                            <th>No</th>
                            <th>~</th>
                            <th>Barcode</th>
                            <th>Product Name</th>
                            <th>SM</th>
                            <th>SPL</th>
                            <th>Quantity</th>
                            <th>Price</th>
                            <th>Discount</th>
                            <th>Amount</th>
                            <th><input type="button" value="+" id="add" class="btn btn-primary add_inv_row"></th>
                        </thead>
                        <tbody class="detail">
                            <tr>
                                <td class="no">1</td>
                                <td class="text-center"><input type="checkbox" class="is_checked" name="till_check[]" value="Bike"></td>

                                <td>
                                    <select name="barcode[]" id="brcode" class="form-control selectpicker barcode" data-live-search="true">
                                    <option value="">Please select a barcode</option>
                                    <?php  foreach($barcodes as $barcode) :?>
                                    <option value="<?php echo $barcode->barcode; ?>"><?php echo $barcode->barcode; ?></option>
                                    <?php endforeach; ?>
                                    </select>
                                </td>
                                <td><input type="text" id="brcode_product" class="form-control productname" name="productname[]"></td>
                                <td>
                                    <select name="sm[]" id="sm" class="form-control selectpicker sm" data-live-search="true">
                                    <option value="">Please select a Employee code</option>
                                    <?php  foreach($employee_codes as $employee_code) :?>
                                    <option value="<?php echo $employee_code->emp_code; ?>"><?php echo $employee_code->emp_code; ?></option>
                                    <?php endforeach; ?>
                                    </select>
                                </td>
                                <td><input type="text" class="form-control spl" name="spl[]"></td>
                                <td><input type="text" class="form-control quantity" name="quantity[]"></td>
                                <td><input type="text" class="form-control price" name="price[]"></td>
                                <td><input type="text" class="form-control discount" name="discount[]"></td>
                                <td><input type="text" class="form-control amount" name="amount[]"></td>
                                <td><a href="#" class="remove">Delete</a></td>

                            </tr>
                        </tbody>
                        <tfoot>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>

                            <th class="text-center"><button class="btn btn-success" id="save_btn" type="submit" name="sale_submit_btn">Save</button></th>
                            <th style="text-align:center;" class="total">0<b></b></th>

                        </tfoot>

                    </table>




                </div> 



                <?php echo form_close(); ?>
                <!--</form>-->

不
~
条形码
品名
性虐待
SPL
量
价格
优惠
数量
1.
请选择一个条形码

添加表单提交按钮。我在上次检查代码时添加了。同时添加表单标签。如果没有表单,您的提交将如何工作。请尝试此操作。我编辑了我的代码。很抱歉,我没有正确发布。。!!