HI 各位大大
我碰到这样一个问题,关于下拉框联动的
问题描述:我现在有一个A页面,传递一个数字2到B页面,此时B页面产生两个下拉框与两个文本框,此时两个下拉框中的数据都是由数据库中获取,那我的问题就来了,我该如何操作使得第一个下拉框选取之后在第一个个文本框中显示与其关联的内容,同样,第二个下拉框选取内容与第二个文本框关联?内容补充:如果我只传递1数字过来到B页面,此时的下拉框联动是正常的,一旦传递过来超过1的数字到B页面就会产生问题
补充:代码如下:$str_qry3="select code_name,content from code where field_name='ptg_list' order by content asc";
$st1=$dbh->prepare("$str_qry3");
$st1->execute();

echo "<td id=th1  align=center ><select name='spad_no[$i]' onchange='
 wlan_mac.value= this.options[this.selectedIndex].ee;'>";
         echo "<option value=''></option>";
      while(list($code_name,$content)=$st1->fetch())
       {     
 list($codename)=fields("select re from code where field_name='ptg_list' and code_name='$code_name'");
         echo "<option value='".$code_name."' name=qname[$i]  ee='$codename'>$code_name-$content</option>";
       }
   echo "</select></td>";
   echo "<td id=th1  align=center><input name=wlan_mac type='text' id='cdname' size=20%/><font size=2 color=red>0-9或a-f的12位字符</font></td>";
请各位帮下忙,谢谢了。