<input type="hidden" name="top10" value =<? echo $n ?>>
should be:
<input type="hidden" name="top10[]" value =<? echo $n ?>>
this way, when you say:
if ($submit) {
$count = count($top10); // count elements
for ( $i = 0; $i < $count; $i++ ) {
// cycle through each element doing whatever..
}
..........or........
if you want just the first ten..
for ($i = 0; $i < 10; $i++ ) {
// echo whatever is stored in $top10
}
basically, the idea here is use the [] in the html portion to indicate an array. i hope this is what you are asking.
kyle