var sHost="http://www.ecs-tools.com"; var opt=document.form1._marque; var machine=document.form1._typeMachine; var prodcount=document.form1._marque.options.length; var prod=new Array(prodcount); for(i=0;itypeMachine\");\n"; } }; print "\n\n"; $q="select DISTINCT marque,typeMachine from catalogue order by marque,typeMachine"; $r=mysql_query("$q",$conn); if(mysql_num_rows($r)) { $i=0; $marque=""; while($o=mysql_fetch_object($r)) { if($marque!=$o->marque) { print "\n\nj=0;\n"; $i++; print "prod[$i][j]=new Option(\"-- Type machine [$o->marque] --\");\n"; $marque=$o->marque; } if($marque) print "prod[$i][++j]=new Option(\"$o->typeMachine\");\n"; } } ?> function Product(x){ for (m=machine.options.length-1;m>0;m--){machine.options[m]=null;} machine.length=prod[x].length; for (i=0;i