Is it not this statement:
> if ( is_array($val) )
> {
> print $key . " = ";
> while(list($key1, $val1) = each ($val))
> print $val1 . ' ';
> print "<br>";
> }
You're printing $key, which I assume is "id=". Perhaps you don't need this?
HTH
Dave