<% @language="VBScript" %> <% option explicit ' This poll requires that the directory containing the mdb file be world-writable ' because it uses an Insert query, and accesses are performed by the anonymous user ' It modifies the MDB files and creates a temporary LDB file during the update. ' See http://support.microsoft.com/support/kb/articles/Q175/1/68.ASP for details Const cspath = "dbpoll.mdb" Const csProvider = "DRIVER={Microsoft Access Driver (*.mdb)}; " Dim conn Dim s %> Poll results

OSI Online - NFS, XWindow, LittleBrother, SURFControl, Delphi, Paradox, HP

<% '------------------------------------------------ private sub InitVars() Dim cnpath Set conn = Server.CreateObject ("ADODB.Connection") cnpath = server.mappath (cspath) ' Response.Write "

Cnpath = " & cnpath conn.mode = 3 '3 = adModeReadWrite conn.Open csProvider & "DBQ=" & cnpath end sub '------------------------------------------------ private sub InsertRow() Const csqPoll = "insert into tblpoll(Code,Nom,Prenom,Pro,IBSite,IBName,IBUse) values('" Dim q q = csqPoll q = q & Request.Form ("COUNTRY") & "','" q = q & Request.Form ("NAME") & "','" q = q & Request.Form ("GIVEN") & "','" q = q & Request.Form ("PRO") & "','" q = q & Request.Form ("IBSite") & "','" q = q & Request.Form ("IBName") & "','" q = q & Request.Form ("IBUse") & "')" ' Response.Write q conn.Execute (q) %>

Thanks for sharing your opinion with the world, <% s = Trim (Request.Form ("GIVEN")) s = UCase (Left (s, 1)) & LCase (Mid (s, 2)) Response.Write Server.HTMLEncode (s) & "." %>

We hope it will help Inprise clear its position up on Open Source issues.

In a few moments, you will be redirected to our main page, or you can leave now.

<% end sub '------------------------------------------------ private sub ShowRes() Const csqShowRes= "select * from tblpoll" Dim rs Dim i Dim q Response.Write "
" q = csqShowRes ' Response.Write "

New q = " & q Set rs = conn.Execute (q) For i = 0 to rs.Fields.Count - 1 Response.Write "

" For i = 0 to rs.Fields.Count - 1 Response.Write "
" & rs.Fields(i).Name next do while not rs.eof Response.Write "
" & rs.Fields(i) next rs.movenext loop rs.close set rs = nothing Response.Write "
" end sub '------------------------------------------------ sub FinVars() 'if conn.State = adStateOpen then conn.close 'end if set conn = nothing end sub '------------------------------------------------ ' main '------------------------------------------------ call InitVars s = Request.ServerVariables ("REQUEST_METHOD") if s = "POST" then call InsertRow elseif (s = "GET") and (Request.QueryString ("USER") = "8137") then call ShowRes else Response.Write "La méthode " & s & " n'est pas autorisée." end if %>
<% call FinVars %>