Developing an online examination program with ASP (v)

Source: Internet
Author: User
Tags query split domain name
program | Online redirect.asp
This page sends the user to the ASP page of the actual generated topics and options. Displays an error message and returns a connection if there are no topics in the database for a specific topic of your choice.
First of all:
id = request.querystring ("section")
Invokes the query string portion and stores the value in the variable ID.
And then:
SQL = "Select Tbl_name from paper where id=" &id
Set RS = Application ("Conn"). Execute (SQL)
Subject= RS (0)
MyString = Split (Subject, "TBL", -1,1)
The SQL declaration passes the domain name table_name in the quiz table. The results are stored in the subject. Further detach the variable subject and store it in the mystring. The Split function is used to display quiz names on the client side to look better.
IF Rs_subject. BOF and Rs_subject. EOF Then
Response.Write Online "& MyString (1) & Test is still to be launched. Come Back _
Later < a href=default.asp >BACK</a > "
Else
Response.Redirect ("exam.asp?section=" &id)
End If
If the above query produces the result, it means that the member chooses the subject which has the question, may carry on the on-line examination. If a particular section is still being created, tell the visitor to come back for the test later. This is the special interest of the examiner, as members can know which of the subjects provided in the previous screen Drop-down menu are pending. Thus, if the section has a title and corresponding options, the page is rebooted to the Exam.asp page, which contains the actual topic.



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.