tyrium 0 Newbie Poster

Hi,
I have got a long list of items that are generated by PHP.
There are 2000 more results and are constantly changing. What i am trying to do is all domains starting with A, B, C etc so it would hiden until you select A for example(sorta like a menu tree). Then all the domains starting with A would show.

All the values are dynamic.


Here is the result image:
http://img402.imageshack.us/img402/2791/imageshackbz.jpg

$box=$_POST['box'];

while (list ($key,$val) = @each ($box)) {
echo "$val,";
}

echo "<form id='domainform' method=post action='' >";
//added id=domainform and the next 2 lines are for the select all feature
echo "<input type='checkbox' name='checkall' onclick='checkedAll(domainform);'>";
echo "&nbsp;Select All<br>";
foreach($domains->domainName as $value) {
echo "<input type=checkbox name=box[] value='".$value."'>";
echo "&nbsp;".$value."<br>";
}
echo "<input type=submit value=Select></form>";