Network examination Room (16) (Turn) tselectsub.asp

Source: Internet
Author: User
select| Network <%@ language=vbscript%>
<%Response.Buffer=true%>
<HTML>
<HEAD>
<meta name= "generator" content= "Microsoft Visual Studio 6.0" >
</HEAD>
<body bgcolor=azure>
<%
If Request.QueryString ("act") = "Add" Then
' If the request joins the question content, the Form1 submits the page to taddquestion.asp
Response.Write "<form action=taddquestion.asp method=post id=form1 name=form1>"
Else
' If you ask to modify the content of the question, the page submitted by Form1 is teditquestion.asp
Response.Write "<form action=teditquestion.asp method=post id=form1 name=form1>"
End If
%>
<P> Select the course to modify/Add topics </P>
<p><select Id=select1 Name=selsub
Style= "HEIGHT:21PX; Width:204px ">
<%
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Connectionstring= "Dsn=testsys"
Conn. Open
' Select Teachid equal to the current teacher number from the table Subinfo of the stored course
Strsql= "SELECT * from Subinfo where teachid= '" & Session ("Teachid") & "'"
Set Mrs=conn. Execute (strSQL)
While not mrs.eof
' Add all the classes to the Select
Response.Write "<OPTION>" & Mrs ("Sub")
Mrs.movenext
Wend
' Close and empty the database connection object
Conn. Close
Set conn=nothing
%>
</SELECT>
<input id=submit1 name=submit type=submit value= determine ></P>
</FORM>
</BODY>
</HTML>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.