ASP trouble
Hi there
Im no that famliar with ASP. Im creating a simple quiz using ms access. Ive saved 10 questions with 4 possible answers. I want this to show up in my website. i cant seem to get it working.heres the code.any ideas?
thanks
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form name="Quiz" Type="Submit" Method="get" action="results.asp" >
<p>
<%
Dim MyConn
Dim SQL
Dim RS
Dim i
set MyConn=Server.CreateObject("ADODB.Connection")
MyConn.Open "DSN=myData"
SQL = "SELECT * FROM Quiz.accdb"
Set RS = MyConn.Execute(SQL)
i = 1
do while not RS.EOF
Response.Write RS("Question")
Response.Write(RS("A")&":<input type='radio' name='Question" & i &" 'value='A'><br>")
Response.Write(RS("B")&":<input type='radio' name='Question" & i &" 'value='B'><br>")
Response.Write(RS("C")&":<input type='radio' name='Question" & i &" 'value='C'><br>")
Response.Write(RS("D")&":<input type='radio' name='Question" & i &" 'value='D'><br>")
i = i + 1
RS.MoveNext
loop
RS.Close
MyConn.Close
Set RS = Nothing
Set MyConn = Nothing
%>
<br />
<input type="Submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
