在PHP的post值中没有设置循环条件时提交值

时间:2017-05-24 08:55:23

标签: php

  1. 我需要' isp_value'

    的帖子值
    Do While Len(FileName) > 0
        'Calculate the next row to be populated for all columns, based on the last
        'used cell in column A
        '(I used column A, but pick whatever destination column will always be
        'populated in every workbook.)
        With CopyToWs
            NextRow = .Cells(.Rows.Count, "A").End(xlUp).Row + 1
        End With
        'Process this workbook
        Set wb = Workbooks.Open(CopyFromPath & FileName)
        With wb.Sheets("Open Issue Actions")
            lcol = .Cells(1, .Columns.Count).End(xlToLeft).Column
            For c = 1 To lcol
                '...
                    With CopyToWs
                        If Not myHeader Is Nothing Then
                            myCol = myHeader.Column
                            'NextRow = .Cells(Rows.Count, myCol).End(xlUp).Row + 1
                            .Cells(NextRow, myCol).PasteSpecial xlPasteValues
                            Application.CutCopyMode = False
                            Set myHeader = Nothing
                        End If
                    End With
    nxt:
                    '...
    
  2. 我得到了isp_hidden_​​value []的隐藏值,但没有得到isp_value []

    的值
    while ($result = mysql_fetch_array($isp_tab)) 
     {
        $isp_value = $result[0];
        echo '<input class="tablinks ion-social-rss" type="submit" name="isp_value[]" value="'.$isp_value.'">';
        echo '<input type="hidden" name="isp_hidden_value[]" value="'.$isp_value.'">';
    
     } 
    
  3. 我需要从isp_value

  4. 提交一个值
  5. 使用$data = $_POST['isp_hidden_value']; foreach($data as $isp) { echo "isp_hidden =".$isp; //this echo works and show all the values in a row } if(isset($_POST['isp_value'])) //if condition fails isp_value is not set(!isset) { //$isp = $_POST['isp_value']; //echo 'isp = '.$isp; print_r($_POST['isp_value']); } 来自name =&#39; hidden_​​value []&#39;的行中的所有值显示但不是来自name =&#39; isp_value []&#39;的单个提交值。

    <?php var_dump($_POST);?>
  6. 任何人都可以帮我解决这个问题

0 个答案:

没有答案