我把所有代码都贴出来,请大家帮助。
<!--#include file="../../../../Inetpub/wwwroot/Item2/conn.asp" -->
<
%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>增加ITEM</title>
</head>
<body>
<form name="addform" method="get" action="../../../../Inetpub/wwwroot/Item2/itemsave.asp" onSubmit="return submitit();">
<div align="center"></div>
<table width="70%" border="0" bgcolor="#FFFFFF" align="center">
<tr>
<td height="131"> <table width="95%" height="637" border="0">
<tr>
<td width="98%" height="176" bgcolor="#3B3B3B">
<div align="left"></div></td>
</tr>
<tr>
<td height="52" bgcolor="#006666"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC"> <p align="left"><font size="5" face="楷体_GB2312">Product</font>
<font size="1">
<select name="product1" size="1" id="select">
<option selected>请选择测试产品</option>
<%do while not rs1.eof%>
<option value="<%=rs1("ProjectName")%>"><%=rs1("ProjectName")%></option>
<%rs1.movenext
loop
%>
</select>
</font>
<font size="5" face="楷体_GB2312">Customer </font>
<select name="customer" size="1" id="customer">
<option value="" selected>请选择相对应客户</option>
<% sql="select * from info_testitem order by projectCustomer"
set rs1=server.createobject("adodb.recordset")
rs1.open sql,conn,3,2
do while not rs1.eof %>
<option value="<%=rs1("ProjectCustomer")%>"><%=rs1("ProjectCustomer")%></option>
<% rs1.movenext
loop
rs1.close %>
</select>
</p></td>
</tr>
<tr>
<td height="36" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td height="30" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td height="35" bgcolor="#CCCCCC"><font size="5" face="楷体_GB2312"><SPAN
class=main1><font color="#000000">Description</font></SPAN>:</font></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><textarea name="textarea" cols="150" rows="9" wrap="VIRTUAL"></textarea></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">
<div align="center">
<input name="Submit" type="submit" id="Submit2" value="Submit">
<input type="button" name="Submit4" value="Return">
</div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<div align="center"></div></td>
</tr>
</table>
<div align="left"></div>
<div align="center"></div>
</form>
</body>
</html>