Hello,
I want to query a MySQL database & display the results on a page. These results will have a checkbox next to each record just like Yahoo Mail. I've already done the coding for that and the code is below. The code is working fine.
Now, the next thing I want to do is to tick a few checkboxes and display only the ticked records on a new page for printing purposes. How do I do this?
Thanks.
<form name="form1" method="POST" action="">
<?php
//connect to the database here
$result = mysql_query("SELECT username FROM users WHERE user_posts = 0
AND username != 'Anonymous' AND user_regdate < $four_months");
while ($row = mysql_fetch_array($result))
{
echo "<input type='checkbox' name='boxes[]' value='{$row
['user_id']}'>" . " " . $row['username'];
echo "<br>";
}
?>
</form>
Thanks for your help.
Additional info.
I've read the postings below though I don't fully understand the explanation.
http://www.phpbuilder.com/board/showthread.php?t=10285484&highlight=Tick+Checkbox
http://www.phpbuilder.com/board/showthread.php?t=10320441&highlight=Tick+Checkbox