Changing checkbox attributes for multiple rows with single checkbox <p>Good Morning,</p> <p>Im working on a larger project but i tried to do a simple page in order to check my work. php/mysql newb here. Sorry! :)</p> <p>What im trying to accomplish is ultimately having a single user page shown with rows of tasks from a table and a single check mark in order to say if the user has completed the task or not by checking or unchecking the box.</p> <p>For testing purposes, I have set up a table with rows labled testid, testdata and testcheck. The testid a INT(2)AutoIncrement and Primary and Unique, testdata is a VARCHAR(30) and testcheck is a TINYINT(1). The auto increment isnt really important because I manually populated all the rows. I have 5 rows (for the array sake) consisting of 1-5 testid, "testdata1-5" for testdata and either a 0 or a 1 for testcheck. The table is functioning fine and the database can be queried.</p> <p>Here is the code for the php start page:</p> <pre><code>&lt;html&gt; &lt;?php include_once('init.php'); $query = mysql_query("SELECT testid, testdata, testcheck FROM testtable"); ?&gt; &lt;h1&gt;Test form for checkmarks&lt;/h1&gt; &lt;form method="POST" action="testover.php"&gt; &lt;table border="1"&gt; &lt;tr&gt; &lt;td&gt; Test ID &lt;/td&gt; &lt;td&gt; Test Data &lt;/td&gt; &lt;td&gt; Checked &lt;/td&gt; &lt;td&gt; Test Check &lt;/td&gt; &lt;/tr&gt; &lt;?php while ( $row = mysql_fetch_assoc($query)) { ?&gt; &lt;tr&gt; &lt;td&gt; &lt;?php echo $row['testid']; ?&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $row['testdata']; ?&gt; &lt;/td&gt; &lt;td&gt; &lt;center&gt;&lt;input type="checkbox" name="&lt;?php $row['testid'] ?&gt;" value="&lt;?php $row['testcheck']; ?&gt;" &lt;?php if($row['testcheck']=='1'){echo 'checked';} ?&gt;&gt;&lt;/center&gt; &lt;/td&gt; &lt;td&gt; &lt;center&gt;&lt;?php echo $row['testcheck']; ?&gt;&lt;/center&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/table&gt; &lt;input type="submit" name="confirm" value="Confirm Details"&gt; &lt;a href="testcheck.php"&gt;&lt;input type="button" value="Home"&gt;&lt;/a&gt; &lt;/form&gt; &lt;/html&gt; </code></pre> <p>Ive been going back and forth trying to use an array for the inputs name (name="something[]") or the "isset" parameter but that is where my knowledge is failing. Ive read countless articles both here and on other websites and I cant seem to find the right code to use. Most sites have rows with multiple check boxes or a different layout of their table. </p> <p>I posted here to hopefully be pointed in some direction as to how to update the DB with these values of the check marks.</p>