1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<!-- #include file="connexion.asp" -->
<%
sql = "SELECT * FROM questions "
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open sql, conn,3,3
%>
<html>
<head>
<title>Le Sommeil</title>
</head>
<body>
<table>
<%
rs.movefirst
Do while rs.eof
response.write ("<tr>")
response.write ("<td>" & rs("Questions") & "</td>")
If rs("Type") = "texte" THEN
response.write ("<td><input type='text'></td>")
ELSE
response.write ("<td><input type='radio' name ='reponse'></td>")
END IF
response.write ("</tr>")
rs.movenext
loop
%>
</table>
</body>
</html> |
Partager