<br> <form action="<?php%20echo%20%24PATH_INFO?>" method="POST"> <br> <?php <br> if (isset($hierarchy)){ <br> //$hierarchy[] = $selection; <br> if (isset($hierarchy)){ <br> while(list($level, $sel) = each($hierarchy)){ <br> echo "<input type="HIDDEN" name="hierarchy[$level]" value="$sel">"; <br> echo $level, ': ', $sel, "<br>n"; <br> $nextlevel = (int) $level + 1; <br> } <br> } <br> } <br> else{ <br> $nextlevel = 0; <br> } <br> echo "<select name='hierarchy[",'>n"; <br> for ($I = 1; $I echo "<option value="$I">$I</option>n"; <br> } <br> echo "</select>n"; <br> ?> <br> <input type="SUBMIT"> <br> </form> <br>