Can someone help me with these checkboxes. I have a while which reads the result set and creates a check box, followed by printing the result.
I am only getting one checkbox. Any help will be appreciated.
print "<form action=....cgi-bin/cgiwrap/blah>
$accounts = "SELECT * FROM accounts where userid = '$userid'";
$result_acct = mysql_query($accounts, $connection)
or die("Could not connect: ".mysql_error());
while ($acct_rows = mysql_fetch_array($result_acct))
{
$type = $acct_rows['type'];
$acct_num = $acct_rows['acctnum'];
print "<input type=\"checkbox\" name=\"account[]\" value=\"$acct_num\"/>";
print "$type ";
print "$acct_num<br>";
}//while
print "</form>";