提交问题,急、急、急,请帮忙,多谢
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<p> </p>
<p>
<form name="form1" method="post" action="">
<select name="select2" onChange="form1.submit()">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<input type="text" name="username">
</form>
</p>
<p>
</p>
<select name="select" onChange="window.open(this.value)">
<%
dim conn1,rs,commandtext,choice
if request.Form("select2")<>"" then
choice=request.Form("select2")
else
choice="1"
end if
set conn1=server.createobject("ADODB.CONNECTION")
conn1.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&server.mappath("/db1.mdb")
Set rs = Server.CreateObject("ADODB.Recordset")
commandtext="select * from url where key='"&choice&"'"
set rs=conn1.execute(commandtext)
while not rs.eof
response.write("<option value="""&rs("url")&""">"&rs("name")&"</option>")
rs.movenext
wend
%>
</select>
</body>
</html>
除了选择下拉菜单,还有文本框要提交,这个提交过程中还有个判断过程,比如选择的下拉菜单值为空,要是在本页判断的话,我一打开这个页面就会跳出这个窗口,如:“选择不能为空”,请问这个应该怎么提交,多谢!!!!!!!!!!!!