Dynamic Checkbox to update MySql Table and JPGraph

Hi,

I have a table on a webpage that gives the outputs from a MySql table, and I have put in a checkbox:

while ($row_All2 = mysql_fetch_array($All2))
{
echo “<tr><td><input type=checkbox name=box value=”.$row_All2[‘In’]. “><br></td>”;
echo “<td>”.$row_All2[‘Optionname’].“</td>”;
echo “<td>”.$row_All2[‘Sum’].“</td></tr>”;
}
echo “</table>”;

I also have a graph (scatterplot in JPGraph) that is generated from the data. What I would like is to be able to click the checkbox and the MySql table is updated and then the graph updates based on what the user has requested.

I hope this makes some sense, any help would be great - thankyou for your time,

HH