flemingmike Posted October 28, 2010 Share Posted October 28, 2010 hello all, im wondering if it is possible to have multiple check boxes that get created based on the number of rows in a table (one representing each row) <input type='checkbox' name='approve[$tid]' value='ON'> and then have a submit button at the bottom of the page that will find all of the checkboxes (it could be 1, or 100) and submit it to my form handling page. thanks Quote Link to comment Share on other sites More sharing options...
flemingmike Posted October 28, 2010 Author Share Posted October 28, 2010 for every returned row from mysql, it produces echo "<td align='center' nowrap>" . $tmechanic . "</td>"; echo "<td align='center' nowrap>" . $tdate1 . "</td>"; echo "<td align='center' nowrap>" . $tjobnumber . "</td>"; echo "<td align='center'>" . $tdescription . "</td>"; echo "<td align='center'>" . $tsignin1 . "</td>"; echo "<td align='center'>" . $tfinish2 . "</td>"; echo "<td align='center'><input type='checkbox' name='approve[$tid]' value='ON'></td>"; and im hoping to have this on the last line: <form name="approve" method="POST" action="approve.php"> *** Find All My Checkboxes that are Checked And Submit *** <input type="submit" value="Approve" name="update"> </form> Quote Link to comment Share on other sites More sharing options...
flemingmike Posted October 28, 2010 Author Share Posted October 28, 2010 i figured it out. i just had to turn my whole page into a form. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.