HEy! having a problem having these form checkboxes because I am echoing them instead of them being part of the HTML document...
code...
<?
mysql_connect("***", "***", "***")
or die("Could not connect:" . mysql_error());
mysql_select_db("***") or die("connection failed");
$nameSelect = "SELECT uname,fname,lname FROM aps_contacts";
$result = mysql_query($nameSelect);
while ( $row = @mysql_fetch_array($result) )
{
echo'<p>';
echo("<input type='checkbox' id='colors[]' value=\"$row[uname]\" /> Color");
echo'</p>';
}
?>
and then i try to :
$temp = $_POST['colors'][$i];
echo($temp);
but it won't print anything?? Im guessing its because it is not part of the form because im just echoing it...is there a way around this?
Thanks!