Professional > Interview scripting > Sample management > Sample management facilities > Authentication of inbound respondents > Example ASP for a pre-authentication page
 
Example ASP for a pre-authentication page
Following is an example of a simple ASP for a pre-authentication page. This page is designed to be used in a project that has one authentication field (Id), and five additional sample record fields that are mapped to columns in the sample table: Language, Browser, Queue, Active, and Project.
<%@ Language=VBScript %>
<html>
  <head>
    <meta name=VI60_defaultClientScript content=JavaScript>
    <meta name="GENERATOR" Content="Microsoft FrontPage 4.0">
    <%
      dim Language, Browser
      Language=Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")
      Browser=Request.ServerVariables("HTTP_USER_AGENT")
    %>
  </head>
  <body bgColor=linen>
    <p>
      <hr>
      <h1>Survey Authentication</h1>
    <p></p>
    <form name=EntryForm method=post
       action=http://MyServer/mrIWeb/mrIWeb.dll>
       <p>Please enter your ID to
          proceed <input id=Id name=Id Type=Text></p>
       <p><input id=Language type=hidden
          Name=Language value=<%=Language%>>
          <input id=Browser type=hidden
          Name=Browser value=<%=Browser%>></p>
       <input type=hidden name=Project value=Example>
       <p><input Type=Submit></p>
    </form>
  </body>
</html>
The page contains only one visible text input field: for the Id authentication field. The page has three hidden input fields:
Language and Browser, which collect information about the language and browser used by the respondent.
Project, which is preset to the name of the project, which in this case isExample.
The information collected in all of these fields (except the Project field) is available to the script as sample fields and is saved in the sample table when the sample record is written. The Project field is recognized as a special field by UNICOM Intelligence Interviewer - Server, and it is not included in the sample fields. The Queue and Active sample fields are internal fields that must not be collected from the respondent. sample management provides the values for these fields.
A name is not defined for the Submit input field, because we do not want it to be included as a sample field, and all of the fields that have names are automatically included as sample fields.
Authentication page in browser
See also
Authentication of inbound respondents