'; foreach ($list_items as $item){ print "
  • $item
  • "; } print ''; } function gen_header($text, $size){ if(($size>1) && ($size<7) && is_int($size)){ print "" . $text . ""; } else{ print "ERROR: INVALID size passed to gen_header"; } } if (isset($_SESSION['categories'])){ if (isset($_POST['category']) && isset($_POST['thing'])){ $_SESSION['categories'][$_POST['category']][] = $_POST['thing']; } foreach ($_SESSION['categories'] as $cat){ gen_header($cat, 3); foreach ($_SESSION['categories'][$cat] as $item{ gen_ulist($item); } } } ?>
    Please enter a category and item to add to our list.
    ' ?>