列表中的值怎么写进数据库?急!!!

771122 2003-08-21 12:59:39
我的程序是从左边列表中选择到右列表,怎么将右边的很多值写进数据库,有这种程序吗?谢谢
...全文
32 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
771122 2003-08-22
  • 打赏
  • 举报
回复
帮帮我!
<!--<input type=text name=gys maxlength=80 size=80 readonly value="将这里的很多值写进数据库">-->

怎么写一数据库,一行行记录
771122 2003-08-21
  • 打赏
  • 举报
回复
大家都睡过午觉了吧?那就快救救我吧
771122 2003-08-21
  • 打赏
  • 举报
回复
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function moveOver()
{
var boxLength = document.form.cygy.length;
var selectedItem = document.form.xzgy.selectedIndex;
var selectedText = document.form.xzgy.options[selectedItem].text;
var selectedValue = document.form.xzgy.options[selectedItem].value;
var i;
var isNew = true;
if (boxLength != 0) {
for (i = 0; i < boxLength; i++) {
thisitem = document.form.cygy.options[i].text;
if (thisitem == selectedText) {
isNew = false;
break;
}
}
}
if (isNew) {
newoption = new Option(selectedText, selectedValue, false, false);
document.form.cygy.options[boxLength] = newoption;
}
document.form.xzgy.selectedIndex=-1;
}
function removeMe() {
var boxLength = document.form.cygy.length;
arrSelected = new Array();
var count = 0;
for (i = 0; i < boxLength; i++) {
if (document.form.cygy.options[i].selected) {
arrSelected[count] = document.form.cygy.options[i].value;
}
count++;
}
var x;
for (i = 0; i < boxLength; i++) {
for (x = 0; x < arrSelected.length; x++) {
if (document.form.cygy.options[i].value == arrSelected[x]) {
document.form.cygy.options[i] = null;
}
}
boxLength = document.form.cygy.length;
}
}
function saveMe() {
var strValues = "";
var boxLength = document.form.cygy.length;
var count = 0;
if (boxLength != 0) {
for (i = 0; i < boxLength; i++) {
if (count == 0) {
strValues = document.form.cygy.options[i].value;
}
else {
strValues = strValues + "," + document.form.cygy.options[i].value;
}
count++;
}
}

}

// End -->
</script>
</head>
<body>
<!--#include file="top.asp"--><!--#include file="conn.asp"-->
<form name="form" action="save.asp" method="post">
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="35">
<div align="center"><font size="4">第二步 填写</font><font size="3">询价表</font></div></td>
</tr>
</table>
<table style="border-collapse: collapse" width="700" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="70" bgcolor="#006699"> <div align="center"><font color="#FFFFFF">选择供应商</font></div></td>
<td height="70">
<select name="xzgy" size="4" style="width:300;" ondblclick="moveOver();" >
<%sql="select * from swd03.xtghdw"
set oradynaset=oradatabase.dbcreatedynaset(sql,0)
Do While Not oradynaset.EOF
y=oradynaset.recordcount
for x=1 to y
Response.Write "<option value="&x&">"&oradynaset("dwmc")&"</option>"
oradynaset.MoveNext
next
Loop
%>
</select> </td>
<td height="70" bgcolor="#006699"> <div align="center"><font color="#FFFFFF">参与报价<br>
的供应商</font></div></td>
<td height="70">
<select multiple name="cygy" style="width:300;" size="4" ondblclick="removeMe();">
<!--<input type=text name=gys maxlength=80 size=80 readonly value="将这里的很多值写进数据库">-->
</select>
</td>
</tr>
pp4u 2003-08-21
  • 打赏
  • 举报
回复
不清楚你的问题,说详细些。,,

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧