提交表单时如何将表值传递给下一个php页面

时间:2015-06-04 07:59:52

标签: php html

我试图将表值访问inventory_issue,但我无法做到....         我能够获得复选框的值,但不能获得其他值。         任何人都可以帮我这个..?

if($select=='soldering_wire') {
?>
<!-- <form class="push_1" id="inventory2"  action="inventory_issue.php" method="post" onSubmit="return false;"> -->
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
    <thead>
        <tr>
            <th>Batch Number</th>
            <th>Gauge</th>
            <th>Check to Approve</th>
        </tr>
    </thead>

    <?php 
        $sql="SELECT * FROM `$select`";
        //echo $sql;
        $result = mysql_query($sql);
        while($row = mysql_fetch_array($result)) {
            echo "<tr class=". "gradeX>";
            echo "<td>" . $row[0] . "</td>";
            echo "<td>" . $row[1] . "</td>";
   ?>
          <td><input type="checkbox" name="check" value="<?php echo $row[0];?>"> </td>

    <?php
            echo "</tr>";
        }
    ?>

    </table>

    <?php } ?>

    <button id="sub" class="form-control btn btn-primary"onClick="aj2();">Issue</button>
    <span id="result2"></span>
</form>

0 个答案:

没有答案