Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Block access after first visit

    Hello, i'm wondering if any1 can help me with the following.

    I want to do a anonymous quiz, but i want the ppl to answer it only once. Since i have no programming skills i used the Frontpage Wizard to create one with Access DB linkage. Everything works fine, i got the required fields, can see results and edit the db, all ok.

    Now the problem is i need to limit users to answer the quiz only once. They are not too advanced users, so np if i use cookies (they won't clear cookies) or anything similar, but i don't have any idea how to program this. I wanted the page to display for them until they press the "submit" button from the quiz, and from there on, no more option to submit, or just not showing the quiz page anymore.

    Any1 can give a hand ?

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Code:
    <%
    if request.cookies("doneTheQuiz") = "absolutively" or request.form("doneTheQuiz") = "absolutively" then
    
    request.cookies("doneTheQuiz") = "absolutively"
    %>
    
    <p>You have already done the quiz</p>
    
    <%
    else
    %>
    
    <form action="thisPage.asp">
    <input type="hidden" name="doneTheQuiz" value="absolutively"/>
    <p>What's your name: <input type="text" name="question1"></p>
    <input type="submit" />
    </form>
    
    <%
    end if
    %>

  • #3
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, if i think i understood your code, first i change the "thisPage.asp" into the name i gave to my page. It's running, but i put in the same name and it doesn't tell me its done.

    Looking at your code, i see that you store the name on the "question1" field, but i don't get any cookie warning or sign on browser, also shouldn't i be checking for the "question1" field information somewhere in the ASP code ?

  • #4
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Good Solution.
    Me also wanted this one like

  • #5
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Post your whole page code

  • #6
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    It's big

    Well, it's very big and remember, i'm a Systems Administrator, plz don't laugh at me doin things in Frontpage with wizards

    <%
    ' FP_ASP ASP Automatically generated by a FrontPage Component. Do not Edit.

    On Error Resume Next
    Session("FP_OldCodePage") = Session.CodePage
    Session("FP_OldLCID") = Session.LCID
    Session.CodePage = 1252
    Err.Clear

    strErrorUrl = ""

    If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
    If Request.Form("VTI-GROUP") = "0" Then
    Err.Clear

    Set fp_conn = Server.CreateObject("ADODB.Connection")
    FP_DumpError strErrorUrl, "Cannot create connection"

    Set fp_rs = Server.CreateObject("ADODB.Recordset")
    FP_DumpError strErrorUrl, "Cannot create record set"

    fp_conn.Open Application("questionario_ConnectionString")
    FP_DumpError strErrorUrl, "Cannot open database"

    fp_rs.Open "Results", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable
    FP_DumpError strErrorUrl, "Cannot open record set"

    fp_rs.AddNew
    FP_DumpError strErrorUrl, "Cannot add new record set to the database"
    Dim arFormFields0(10)
    Dim arFormDBFields0(10)
    Dim arFormValues0(10)

    arFormFields0(0) = "a1"
    arFormDBFields0(0) = "a1"
    arFormValues0(0) = Request("a1")
    arFormFields0(1) = "a2"
    arFormDBFields0(1) = "a2"
    arFormValues0(1) = Request("a2")
    arFormFields0(2) = "a3"
    arFormDBFields0(2) = "a3"
    arFormValues0(2) = Request("a3")
    arFormFields0(3) = "b4"
    arFormDBFields0(3) = "b4"
    arFormValues0(3) = Request("b4")
    arFormFields0(4) = "b5"
    arFormDBFields0(4) = "b5"
    arFormValues0(4) = Request("b5")
    arFormFields0(5) = "c6"
    arFormDBFields0(5) = "c6"
    arFormValues0(5) = Request("c6")
    arFormFields0(6) = "c7"
    arFormDBFields0(6) = "c7"
    arFormValues0(6) = Request("c7")
    arFormFields0(7) = "c8"
    arFormDBFields0(7) = "c8"
    arFormValues0(7) = Request("c8")
    arFormFields0(8) = "d9"
    arFormDBFields0(8) = "d9"
    arFormValues0(8) = Request("d9")
    arFormFields0(9) = "e"
    arFormDBFields0(9) = "e"
    arFormValues0(9) = Request("e")

    FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0


    fp_rs.Update
    FP_DumpError strErrorUrl, "Cannot update the database"

    fp_rs.Close
    fp_conn.Close

    FP_FormConfirmationFromArrays "text/html; charset=windows-1252",_
    "Form Confirmation",_
    "Thank you for submitting the following information:",_
    "submission_form.asp",_
    "Return to the form.",_
    arFormDBFields0,_
    arFormValues0

    End If
    End If

    Session.CodePage = Session("FP_OldCodePage")
    Session.LCID = Session("FP_OldLCID")

    %>
    <% Response.Buffer = True %>

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Results -- New</title>
    <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    </head>

    <body bgcolor="#FFFFFF">

    <table width="100%" align=left>
    <tr>
    <td width="50%">
    <b><font size=+3 color="#000080"> Avaliação da Satisfação Qualidade de Serviço da Area de Sistemas da Precision
    </font></b>
    <p>Seleccionar um valor relativo à Satisfação, ou indique quando Não Aplicável.</td>
    <td width="50%" align=right>
    <table>
    <tr>
    <td>
    <a href="../results_page.asp" target="_top">Results Page</a> |
    Submission Form
    | <a href="database_editor.asp" target="_top">Database Editor</a>

    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>


    <p>
    <br clear="all">
    <hr>
    <p>

    <form METHOD="POST" action="--WEBBOT-SELF--">

    <!--webbot bot="SaveDatabase" SuggestedExt="asp" S-DataConnection="questionario" S-RecordSource="Results" S-Form-Fields="a1 a2 a3 b4 b5 c6 c7 c8 d9 e" S-Form-DBFields="a1 a2 a3 b4 b5 c6 c7 c8 d9 e " B-UseDBFieldsForConfirmation="True" U-ASP-Include-Url="../../../_fpclass/fpdbform.inc" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--#include file="../../../_fpclass/fpdbform.inc"--><!--webbot bot="SaveDatabase" i-checksum="52631" endspan -->

    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table1">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Adequação das aplicações informáticas ao trabalho a realizar</td>
    </tr>
    </table>

    <p>
    <p><input type="radio" name="a1" value="Option 1" >Excelente</p>
    <p><input type="radio" name="a1" value="Option 2" >Bom</p>
    <p><input type="radio" name="a1" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="a1" value="Option 4" >Fraco</p>
    <p><input type="radio" name="a1" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table2">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Fiabilidade das aplicações (os sistemas não estarem &quot;em baixo&quot</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="a2" value="Option 1" >Excelente</p>
    <p><input type="radio" name="a2" value="Option 2" >Bom</p>
    <p><input type="radio" name="a2" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="a2" value="Option 4" >Fraco</p>
    <p><input type="radio" name="a2" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table3">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height:15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Velocidade de processamento das aplicações</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="a3" value="Option 1" >Excelente</p>
    <p><input type="radio" name="a3" value="Option 2" >Bom</p>
    <p><input type="radio" name="a3" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="a3" value="Option 4" >Fraco</p>
    <p><input type="radio" name="a3" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table4">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Eficácia na resolução de problemas (a resposta resolveu o problema)</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="b4" value="Option 1" >Excelente</p>
    <p><input type="radio" name="b4" value="Option 2" >Bom</p>
    <p><input type="radio" name="b4" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="b4" value="Option 4" >Fraco</p>
    <p><input type="radio" name="b4" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table5">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Eficiência na resolução de problemas (a resposta foi rápida)</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="b5" value="Option 1" >Excelente</p>
    <p><input type="radio" name="b5" value="Option 2" >Bom</p>
    <p><input type="radio" name="b5" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="b5" value="Option 4" >Fraco</p>
    <p><input type="radio" name="b5" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table6">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Preocupação da Equipa de Sistemas em me manter informado sobre questões
    críticas</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="c6" value="Option 1" >Excelente</p>
    <p><input type="radio" name="c6" value="Option 2" >Bom</p>
    <p><input type="radio" name="c6" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="c6" value="Option 4" >Fraco</p>
    <p><input type="radio" name="c6" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table7">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Adequação das acções preventivas para evitar o aparecer de problemas</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="c7" value="Option 1" >Excelente</p>
    <p><input type="radio" name="c7" value="Option 2" >Bom</p>
    <p><input type="radio" name="c7" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="c7" value="Option 4" >Fraco</p>
    <p><input type="radio" name="c7" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table8">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Satisfação com a evolução sentida na qualidade de Prestação de Serviço</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="c8" value="Option 1" >Excelente</p>
    <p><input type="radio" name="c8" value="Option 2" >Bom</p>
    <p><input type="radio" name="c8" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="c8" value="Option 4" >Fraco</p>
    <p><input type="radio" name="c8" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table9">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Qualidade e estado de conservação do equipamento informático</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="d9" value="Option 1" >Excelente</p>
    <p><input type="radio" name="d9" value="Option 2" >Bom</p>
    <p><input type="radio" name="d9" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="d9" value="Option 4" >Fraco</p>
    <p><input type="radio" name="d9" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table10">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-weight: 700; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Satisfação global com o serviço prestado</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="e" value="Option 1" >Excelente</p>
    <p><input type="radio" name="e" value="Option 2" >Bom</p>
    <p><input type="radio" name="e" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="e" value="Option 4" >Fraco</p>
    <p><input type="radio" name="e" value="Option 5" >Não aplicavél</p>
    <br>
    </p>


    <p><input type="submit" value=" OK "><input type="reset" value=" Reset "></p>

    </form>

    </body>

    </html>

  • #7
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, now that i posted the whole thing, might as well explain a bit about it.

    It's a satisfaction quiz, it's supposed to be anonymous (as much as possible) but to maintain a good lvl of usefullness, it's supposed the ppl only fill it once ofc, otherwise some might be tempted to answer it several times corrupting the value of the quiz.

  • #8
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Try this one and let me know if it is okay...

    Code:
    <%
    ' FP_ASP ASP Automatically generated by a FrontPage Component. Do not Edit.
    
    On Error Resume Next
    Session("FP_OldCodePage") = Session.CodePage
    Session("FP_OldLCID") = Session.LCID
    Session.CodePage = 1252
    Err.Clear
    
    strErrorUrl = ""
    
    If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
    If Request.Form("VTI-GROUP") = "0" Then
    Err.Clear
    
    Set fp_conn = Server.CreateObject("ADODB.Connection")
    FP_DumpError strErrorUrl, "Cannot create connection"
    
    Set fp_rs = Server.CreateObject("ADODB.Recordset")
    FP_DumpError strErrorUrl, "Cannot create record set"
    
    fp_conn.Open Application("questionario_ConnectionString")
    FP_DumpError strErrorUrl, "Cannot open database"
    
    fp_rs.Open "Results", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable
    FP_DumpError strErrorUrl, "Cannot open record set"
    
    fp_rs.AddNew
    FP_DumpError strErrorUrl, "Cannot add new record set to the database"
    Dim arFormFields0(10)
    Dim arFormDBFields0(10)
    Dim arFormValues0(10)
    
    arFormFields0(0) = "a1"
    arFormDBFields0(0) = "a1"
    arFormValues0(0) = Request("a1")
    arFormFields0(1) = "a2"
    arFormDBFields0(1) = "a2"
    arFormValues0(1) = Request("a2")
    arFormFields0(2) = "a3"
    arFormDBFields0(2) = "a3"
    arFormValues0(2) = Request("a3")
    arFormFields0(3) = "b4"
    arFormDBFields0(3) = "b4"
    arFormValues0(3) = Request("b4")
    arFormFields0(4) = "b5"
    arFormDBFields0(4) = "b5"
    arFormValues0(4) = Request("b5")
    arFormFields0(5) = "c6"
    arFormDBFields0(5) = "c6"
    arFormValues0(5) = Request("c6")
    arFormFields0(6) = "c7"
    arFormDBFields0(6) = "c7"
    arFormValues0(6) = Request("c7")
    arFormFields0(7) = "c8"
    arFormDBFields0(7) = "c8"
    arFormValues0(7) = Request("c8")
    arFormFields0(8) = "d9"
    arFormDBFields0(8) = "d9"
    arFormValues0(8) = Request("d9")
    arFormFields0(9) = "e"
    arFormDBFields0(9) = "e"
    arFormValues0(9) = Request("e")
    
    FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0
    
    
    fp_rs.Update
    FP_DumpError strErrorUrl, "Cannot update the database"
    
    fp_rs.Close
    fp_conn.Close
    Response.Cookies("QuizDone")="Yes"
    
    FP_FormConfirmationFromArrays "text/html; charset=windows-1252",_
    "Form Confirmation",_
    "Thank you for submitting the following information:",_
    "submission_form.asp",_
    "Return to the form.",_
    arFormDBFields0,_
    arFormValues0
    
    End If
    End If
    
    Session.CodePage = Session("FP_OldCodePage")
    Session.LCID = Session("FP_OldLCID")
    
    %>
    <% Response.Buffer = True %>
    
    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Results -- New</title>
    <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    </head>
    
    <body bgcolor="#FFFFFF">
    
    <table width="100%" align=left>
    <tr>
    <td width="50%">
    <b><font size=+3 color="#000080"> Avaliação da Satisfação Qualidade de Serviço da Area de Sistemas da Precision
    </font></b>
    <p>Seleccionar um valor relativo à Satisfação, ou indique quando Não Aplicável.</td>
    <td width="50%" align=right>
    <table>
    <tr>
    <td>
    <a href="../results_page.asp" target="_top">Results Page</a> |
    Submission Form
    | <a href="database_editor.asp" target="_top">Database Editor</a>
    
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    
    
    <p>
    <br clear="all">
    <hr>
    <p>
    <% if Trim(Request.Cookies("QuizDone")) = "Yes" then %>
    <p>You have already done the quiz</p>
    <% Else %>
    <form METHOD="POST" action="--WEBBOT-SELF--">
    <!--webbot bot="SaveDatabase" SuggestedExt="asp" S-DataConnection="questionario" S-RecordSource="Results" S-Form-Fields="a1 a2 a3 b4 b5 c6 c7 c8 d9 e" S-Form-DBFields="a1 a2 a3 b4 b5 c6 c7 c8 d9 e " B-UseDBFieldsForConfirmation="True" U-ASP-Include-Url="../../../_fpclass/fpdbform.inc" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--#include file="../../../_fpclass/fpdbform.inc"--><!--webbot bot="SaveDatabase" i-checksum="52631" endspan -->
    
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table1">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Adequação das aplicações informáticas ao trabalho a realizar</td>
    </tr>
    </table>
    
    <p>
    <p><input type="radio" name="a1" value="Option 1" >Excelente</p>
    <p><input type="radio" name="a1" value="Option 2" >Bom</p>
    <p><input type="radio" name="a1" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="a1" value="Option 4" >Fraco</p>
    <p><input type="radio" name="a1" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table2">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Fiabilidade das aplicações (os sistemas não estarem &quot;em baixo&quot</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="a2" value="Option 1" >Excelente</p>
    <p><input type="radio" name="a2" value="Option 2" >Bom</p>
    <p><input type="radio" name="a2" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="a2" value="Option 4" >Fraco</p>
    <p><input type="radio" name="a2" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table3">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height:15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Velocidade de processamento das aplicações</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="a3" value="Option 1" >Excelente</p>
    <p><input type="radio" name="a3" value="Option 2" >Bom</p>
    <p><input type="radio" name="a3" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="a3" value="Option 4" >Fraco</p>
    <p><input type="radio" name="a3" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table4">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Eficácia na resolução de problemas (a resposta resolveu o problema)</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="b4" value="Option 1" >Excelente</p>
    <p><input type="radio" name="b4" value="Option 2" >Bom</p>
    <p><input type="radio" name="b4" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="b4" value="Option 4" >Fraco</p>
    <p><input type="radio" name="b4" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table5">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Eficiência na resolução de problemas (a resposta foi rápida)</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="b5" value="Option 1" >Excelente</p>
    <p><input type="radio" name="b5" value="Option 2" >Bom</p>
    <p><input type="radio" name="b5" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="b5" value="Option 4" >Fraco</p>
    <p><input type="radio" name="b5" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table6">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Preocupação da Equipa de Sistemas em me manter informado sobre questões
    críticas</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="c6" value="Option 1" >Excelente</p>
    <p><input type="radio" name="c6" value="Option 2" >Bom</p>
    <p><input type="radio" name="c6" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="c6" value="Option 4" >Fraco</p>
    <p><input type="radio" name="c6" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table7">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Adequação das acções preventivas para evitar o aparecer de problemas</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="c7" value="Option 1" >Excelente</p>
    <p><input type="radio" name="c7" value="Option 2" >Bom</p>
    <p><input type="radio" name="c7" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="c7" value="Option 4" >Fraco</p>
    <p><input type="radio" name="c7" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table8">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Satisfação com a evolução sentida na qualidade de Prestação de Serviço</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="c8" value="Option 1" >Excelente</p>
    <p><input type="radio" name="c8" value="Option 2" >Bom</p>
    <p><input type="radio" name="c8" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="c8" value="Option 4" >Fraco</p>
    <p><input type="radio" name="c8" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table9">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Qualidade e estado de conservação do equipamento informático</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="d9" value="Option 1" >Excelente</p>
    <p><input type="radio" name="d9" value="Option 2" >Bom</p>
    <p><input type="radio" name="d9" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="d9" value="Option 4" >Fraco</p>
    <p><input type="radio" name="d9" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    <table x:str border="0" cellpadding="0" cellspacing="0" width="509" style="border-collapse:
    collapse;width:382pt" id="table10">
    <colgroup>
    <col width="509" style="width: 382pt">
    </colgroup>
    <tr height="21" style="height: 15.75pt">
    <td height="21" width="509" style="height: 15.75pt; width: 382pt; color: #333333; font-weight: 700; font-family: 'Palatino Linotype', serif; font-size: 10.0pt; font-style: normal; text-decoration: none; text-align: general; vertical-align: bottom; white-space: nowrap; border: medium none; padding: 0px">
    Satisfação global com o serviço prestado</td>
    </tr>
    </table>
    <p>
    <p><input type="radio" name="e" value="Option 1" >Excelente</p>
    <p><input type="radio" name="e" value="Option 2" >Bom</p>
    <p><input type="radio" name="e" value="Option 3" >Razoavél</p>
    <p><input type="radio" name="e" value="Option 4" >Fraco</p>
    <p><input type="radio" name="e" value="Option 5" >Não aplicavél</p>
    <br>
    </p>
    
    
    <p><input type="submit" value=" OK "><input type="reset" value=" Reset "></p>
    
    </form>
    <%End IF%>
    
    </body>
    
    </html>

  • #9
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm afraid it let me fill the quiz just right after i filled it

  • #10
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Hey man this is working fine for me

  • #11
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Try clearing your cookies

  • #12
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,603
    Thanks
    0
    Thanked 645 Times in 635 Posts
    There are only three ways of trying to identify someone on the web.

    1. To set a cookie to keep track of their computer. They can of course refuse to have the cookie set in the first place or delete it after you set it and they are then a new visitor again 2 seconds after their last visit.

    2. Record their IP address and assume that anyone with that IP address who visits again in a certain period is the same person. Note that anyone on dial-up will get a different address each time they dial in. Many on broadband also have a dynamic IP address that is regularly changed on them. This means that the same person may have different IP addresses at different times and the same IP address may be allocated to different people at different times (or even at the same time if they are on the same network eg. 1000 people all working in the same office may have the same IP).

    3. Set up a membership site and make it available only to members so that you can flag those members who have participated. Then all you need to do is to make it difficult for one person to get multiple accounts (eg. by collecting lots of info about them and not allowing too much of it to be duplicated).
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #13
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cleared my cookies, deleted all offline files, made sure file on webserver was the updated one.

    I'm wondering if it's not a thing with all these Frontpage controls ? These class files got a lot of coding on them, and these "webbot" definitions...

    Like in Spudhead example i tried to find what was different, and even changed the

    <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"> //right after form

    with

    <input TYPE="hidden" NAME="QuizDone" VALUE="Yes"> //out of your example

    Felgall, this is on a intranet , so no dialups, i guess i could also go for IP check, since it's also supposed to be 1 submit for each PC.

  • #14
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,603
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Provided that your intranet uses static IP addresses that is probably the best way to go.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #15
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, i'm still trying to figure it out, but eventually what i might do if i don't get it working, is maybe do this check on a previous page, like a frontpage where you click something and then u can do the quiz.

    Maybe it gets easier to do it outside of this frontpage messy code


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •