Network examination Room (7) (turn) taddquestion.asp

Source: Internet
Author: User
Tags end join visual studio
Network <%@ language=vbscript%>
<%
If Request.ServerVariables ("http_method") = "POST" Then
If Request.Form ("submit") = "Join" Then
' Process join question request
Set Mrs=server. CreateObject ("Adodb.recordset")
Mrs. activeconnection= "Dsn=testsys"
Mrs. Source= "SELECT * from Question"
Mrs. Open, 1,3
' Add the question content to the table question of the database
Mrs. AddNew
Mrs ("Teachid") =session ("Teachid")
Mrs ("sub") =request.form ("Selsub")
Mrs ("question") =request.form ("question")
Mrs ("A") =request.form ("Opta")
Mrs ("B") =request.form ("OPTB")
Mrs ("C") =request.form ("OPTC")
Mrs ("D") =request.form ("Optd")
Mrs ("Answer") =request.form ("Answer")
Mrs. Update
Mrs. Close
Set mrs=nothing
End If
End If
%>
<HTML>
<HEAD>
<meta name= "generator" content= "Microsoft Visual Studio 6.0" >
</HEAD>
<BODY>
<form action= "taddquestion.asp" Method=post id=form1 name=form1>
<p><strong><font Color=crimson face= Young Round
Size=4> to the question library to add the questions </FONT></STRONG></P>

<P> Courses---
<%response.write Request.Form ("Selsub")%></p>

<P>
<table border=0 cellpadding=1 cellspacing=1 width=90%>

<TR>
<TD> Topics </TD></TR>
<TR>
<td><textarea id=textarea1 name=question style= "HEIGHT:114PX; width:60% "></TEXTAREA></TD></TR>
<TR>
<TD> Choose the answer
<TR>
<td>a.
<input id=text1 name=opta style= "HEIGHT:21PX; width:40% ">
<TR>
<TD>

<p>b.
<input id=text2 NAME=OPTB style= "HEIGHT:21PX; width:40% "></P>
<TR>
<td>c.
<input id=text3 NAME=OPTC style= "HEIGHT:21PX; width:40% ">
<TR>
<TD>

<p>d.
<input id=text4 name=optd style= "HEIGHT:21PX; width:40% "></P>
<TR>
<TD>

<P> correct answers
<input id=radio1 name=answer Type=radio value=a>a
<input Id=radio2 name=answer Type=radio value=b>b
<input Id=radio3 name=answer Type=radio value=c>c
<input Id=radio4 name=answer Type=radio value=d>d
</P>
</td></tr></table><input id=submit1 name=submit type=submit value= Join >
<%
' Save the account name currently added to the question library with type hidden input
Response.Write "<input Type=hidden name=selsub value=" & Request.Form ("Selsub") & ">"
%>
</P>
</FORM>
</BODY>
</HTML>



Related Article

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.