okay... you asked a vague question... you get a vague responce....
this does what I think you are asking :
<?
$list_of_possibilities = array(
'this',
'that',
'the other thing',
'something else',
'what is this?',
'okay, this is getting nutz',
'STOP FOLLOWING ME!!!!',
'FORGET THIS',
'this is really getting obnoxious',
'fire the guy who wrote this boring program',
'he better have had a darn good reason',
"what's that?",
'ohhh he was helping a guy on PHP builder?',
'well I suppose that is okay',
'but it is still boring',
'like watching someone knit',
"okay, well it's like counting sheep",
"that reminds me, I'm kinda tired",
"guess I'll go to sleep",
'ZZZZZZZZZZZzzzzzzzzzzzzzzzzzzZZZZZZZZZZZZZZZZzzzzzzzzzzzzzzz'
);
if($part_two)
{
$item_ids = array_keys($item);
for($i=0;$i<count($item_ids);$i++)
{
echo $list_of_possibilities[$item_ids[$i]],"<BR>";
}
exit;
}
echo "
<FORM METHOD=POST ACTION='newthing.php'>
<INPUT TYPE=HIDDEN NAME='part_two' VALUE=1>
";
for($i=0;$i<count($list_of_possibilities);$i++)
{
echo "<INPUT TYPE='checkbox' NAME='item[$i]' VALUE=1 ID='id_for_$i'><LABEL FOR='id_for_$i'>$list_of_possibilities[$i]</LABEL><BR>";
}
echo "<INPUT TYPE=SUBMIT VALUE='Submit this'></FORM>";
?>