<%@LANGUAGE="VBSCRIPT"%> <% if not (session("access_level") = "admin") then response.Redirect("index.asp") end if %> Add Test


<% if request.Form("add") = "true" then Query = "select * FROM test_name where test_name = '" & request.Form("test_name") & "'" Set RS = Server.CreateObject("ADODB.Recordset") RS.Open Query, test_connector, 3, 3 if RS.bof and RS.eof then RS.addnew RS("test_name") = request.form("test_name") RS.update response.Redirect("add_questions.asp?test_name=" & request.form("test_name")) else Response.write "
Test Name is already in database
" end if end if %>


New Test Name:

 
www.000webhost.com