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.