View Single Post
Old 02-01-2010, 03:17 PM   #4 (permalink)
maeltar
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

To be honest I would not code it the way you have done, I would be (maybe wrongly) do it something like this...

Code:
<?

print "<table cellpadding=2 cellspacing=0 border=0 >\n";
print "<tr>
<th>Select</th>
<th>Name</th>
<th>ID</th>
</tr>\n";

while ($qry = mysql_fetch_array($my_query))
{
print "<tr><td>INPUT TYPE=CHECKBOX NAME=$qry[ID]</td>
<td>$qry[Name]</td>
<td>$qry[ID]</td>
<form name='form1' method='post' action=$PHP_SELF>
<input type='submit'>
</form>
</td>
</tr>\n ";
}
print "</table>\n";

?>
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
The Following User Says Thank You to maeltar For This Useful Post:
Dave (02-01-2010)