"; // print the select code and the appropriate div for ($y=2; $y<($sel_num + 1); $y++) { $z = $y + 1; // used to define the function to call to show the next select echo '
'; echo my_select("myname".$y, "null", "dropme".$z."()"); echo '

'; } function my_select($name, $default = "null", $onchange="") { $str = ''; return $str; } // my_select function js_multiple_select( $f_name, $s_name, $number) { // dont forget to open your script tag correctly $str = ""; } ?>