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>