02-01-2010, 03:17 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
|
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
|
|
|