html - how to pass table values to next php page when form is submitted -
i'm trying access table values inventory_issue, i'm unable it.... i'm able value of checkbox not others. can me this..?
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 approve</th> </tr> </thead> <?php $sql="select * `$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>
Comments
Post a Comment