I am trying to post fields which are selected by checkbox, so that they will be displayed on the next page, new.php4. this is the code I am using and it doesn't seem to be print out the selected fields on the new page. could anyone help??
<FORM METHOD = post ACTION = new.php4)
for ($i=0; $i < mysql_num_fields ($result); $i++)
{
print("<TR><TD>");
$name = mysql_field_name ($result, $i);
print ("$field\n");
$row[] = $field;
print("</TD><TD>");
printf("<INPUT type=checkbox name=$field] value=$field>"
if(strstr($row["permission"], $field)) print("CHECKED");
print("</TD></TR>");
}
</FORM>