急!急!急!急!急!快帮忙解决!
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from info order by email desc"
rs.open sql,conn,1,1
%>
<html>
<head>
<title>邮件列表修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="Javascript">
<!--
function move(side){
var temp1 = new Array();
var temp2 = new Array();
var tempa = new Array();
var tempb = new Array();
var current1 = 0;
var current2 = 0;
var y=0;
var attribute;
//assign what select attribute treat as attribute1 and attribute2
if (side == "in") {
attribute1 = document.myform.sitem;
attribute2 = document.myform.ditem;
} else {
attribute1 = document.myform.ditem;
attribute2 = document.myform.sitem;
}
//fill an array with old values
for (var i = 0; i < attribute2.length; i++) {
y=current1++
temp1[y] = attribute2.options[i].value;
tempa[y] = attribute2.options[i].text;
}
//assign new values to arrays
for (var i = 0; i < attribute1.length; i++) {
if ( attribute1.options[i].selected ) {
y=current1++
temp1[y] = attribute1.options[i].value;
tempa[y] = attribute1.options[i].text;
} else {
y=current2++
temp2[y] = attribute1.options[i].value;
tempb[y] = attribute1.options[i].text;
}
}
//generating new options
for (var i = 0; i < temp1.length; i++) {
attribute2.options[i] = new Option();
attribute2.options[i].value = temp1[i];
attribute2.options[i].text = tempa[i];
}
//generating new options
for (var i=temp2.length; i<attribute1.lenght; i++) {
attribute1.options[i] = null;
}
attribute1.length = temp2.length;
if (temp2.length>0) {
for (var i = 0; i < temp2.length; i++) {
attribute1.options[i] = new Option();
attribute1.options[i].value = temp2[i];
attribute1.options[i].text = tempb[i];
}
}
}
function selectall(){
attribute1 = document.myform.ditem;
for (var i=0; i<attribute1.length; i++) {
attribute1.options[i].selected = true;
}
attribute2 = document.myform.sitem;
for (var i=0; i<attribute2.length; i++) {
attribute2.options[i].selected = true;
}
return 1;
}
function submitadddate(){
}
//-->
</script>
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body id="htmlbody" topmargin="0" leftmargin="0">
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:13;margin-top:5">
<tr>
<td>
<form method=post name="myform" onsubmit="selectall();" action="adg0.asp">
<table width="95%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#cccccc" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" align="center">
<tbody>
<tr class="TB1">
<td width="100" class="zi18">列表名:</td>
<%dim grounp
grounp=trim(request("grounp"))
set rs1=server.createobject("adodb.recordset")
sql1="select * from grounp where grounp='"&grounp&"' order by email desc"
rs1.open sql1,conn,1,1
%>
<td>
<input name="grounp" type="text" id="grounp" value="<%=rs1("grounp")%>">
</td>
</tr>
<tr class="TB3">
<td class="zi18" nowrap>列表邮件编辑:</td>
<td>
<table width=100% border=0 cellpadding="2" cellspacing="0">
<tr align="center">
<td width="40%" nowrap class="zi18" >组地址本邮件</td>
<td rowspan=2 width="20%">
<input name="image" type="image" class="NormalButton" onclick="move('in'); return false;" value=" 添加 >> " src="image/an_tj.gif" border="0">
<br>
<input name="image" type="image" class="NormalButton" onclick="move('out'); return false;" value=" << 删除 " src="image/an_sc1.gif" border="0">
</td>
<td width="40%" nowrap class="zi18" >所有邮件地址</td>
</tr>
<tr align="center">
<td>
<select size="15" name="ditem" multiple ondblclick="move('out')">
</select>
</td>
<td>
<select size="15" name="sitem" multiple ondblclick="move('in')">
<%if not rs.eof then%>
<%do while not rs.eof%>
<option value="0"><%=rs("email")%></option>
<%rs.movenext%>
<%loop%>
<%end if%>
</select>
</td>
</tr>
</table></td>
</tr>
</table>
<p align=center>
<input type="submit" name="submitadd.x" value="编辑" onClick="submitadddate()">
<input name="button" type="button" onclick="javascript:history.back();" value="取消">
</p>
</form></td>
</tr>
</table>
</body>
</html>
如上代码右边的数据移动到左边后,我点击编辑就可以把数据存入数据库,这个处理的代码应该怎么样写呢!写在哪呢!