<select name= "xm1 " size= "5 " style= "width:100px ">
<option value=A> aaaaaaaaaa
<option value=B> bbbbbbbbbb
<option value=C> cccccccccc
<option value=D> dddddddddd
<option value=E> eeeeeeeeee
<option value=F> ffffffffff
<option value=G> gggggggggg
<option value=H> hhhhhhhhhh
</select>
我希望表单提交后把列表框 "xm1 "的所有值(value)保存到数组 "xm "里面去,应该怎么写?
request( "xm1 ")[1]=
------解决方案--------------------
前台submit()之前
<input type= "hidden " name= "xm ">
<script>
var sel = document.form_name.xm1;
var s= " ";
for(var i=0;i <sel.options.length;i++){
s += sel.options[i].value;
if(i!=sel.options.length-1) s+= ", "
}
document.form_name.xm.value = s;
document.form_name.submit
</script>
服务器端
<%
xm = split(request( "xm "), ", ")
%>
------解决方案--------------------
或
就整个生成的XML的数据
在服务端LOADXML
然后再处理就可以了
不用拆分了