Responsinve Form,最初将显示表中PHP变量的数据

时间:2015-10-06 07:37:14

标签: php html twitter-bootstrap-3

my requirement form link

我制作了一个显示PHP变量数据的html表单。表单包含一个表,该表具有基于PHP变量的行数。 但问题是表单没有响应你可以请一些想法我如何使用表格从PHP变量加载数据的响应形式。我目前的代码如下:

<div class="row">
                <div class="col-md-8">
                <form method="POST" action="/updateInfo" enctype="multipart/form-data" name="InfoForm">
                            <div style ="width:100%; height:250px;">
                                <table style = "width:100%;border:2px;height:60%;"> 
                                    <tr style = "border-bottom: thin solid;background-color:#9a004b;color:White">
                                        <th></th>   
                                        <th>Register Date</th>
                                        <th>Reconciliation Date</th>
                                        <th>Amount</th>
                                        <th>IBAN</th>
                                        <th>Withhold</th>
                                    </tr>

                                    <?php   foreach($overpayment as $key=>$value){
                                            if(empty($value['ReconciliationDate'])){
                                    ?>              <tr  style="border:1px solid #9a004b;background-color: White">
                                                <div class="row">   
                                                    <td><input type="hidden" name=OverpaymentNr[] value="<?php echo $value['OverpaymentNr']?>"</td>
                                                    <td><label name=Paydate[] value=""/><?php echo $value['RegisterDate']?></td>
                                                    <td><label name=ReconciliationDate[] value=""/><?php echo $value['ReconciliationDate']?></td>
                                                    <td><label name=Amount[] value=""/><?php echo $value['Amount']?></td>


                                                    <td><input type="text" style="width:186px; height:35px;" name=IBAN[] value="<?php echo $value['IBAN']?>"/> </td>
                                                        <td><label name=Withhold[] value=""/><?php echo $value['Withhold']?></td>

                                                </div>
                                                </tr>   
                                    <?php       }
                                        } 
                                    ?>
                                        <tr  style="border-top:1px solid #9a004b;">
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td align="center"><input type="Submit" class="btn btn-danger pull-right" name= Submit value = Submit /> </td>
                                            <td></td>
                                        </tr>
                                </table>    
                            </div>

                        </form>     
                        </div>  
            </div>

0 个答案:

没有答案