Hi to ya all,
I have a problem with checkboxes:
This is the code on page 1:
printf("<FORM method= POST action=.........>");
do{
printf("<TR><TD><INPUT TYPE=checkbox NAME='item[]' value=%s>%s</TD></TR>",$myrow["positie"],$myrow["naam"]);
}while( $myrow = mysql_fetch_array( $SQL ) );
printf("</FROM>");
I use POST method!!!!
So on the next page i want to see all the checkboxes that were checked on the previous page, this is the code I use:
$check = array();
$check[] = $_POST["item[]"];
$i = 0;
do{
printf("%s: %s<BR>",$i,$check[$i]);
$i++;
}while( $i < $aantal);
And i don't see anything. Can someone please help me?
thx in advance