home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / PopulateForm_VBScript.asp < prev    next >
Text File  |  1997-10-25  |  1KB  |  48 lines

  1. <%@ LANGUAGE = VBScript %>
  2. <%  Option Explicit     %>
  3.  
  4. <% 
  5.     ' Create and Set Variables that will be used in populating
  6.     ' the form.  In a typical application, these values would come
  7.     ' from a database or text file.
  8.  
  9.     Dim strFirstName
  10.     Dim strLastName
  11.     Dim strAddress1
  12.     Dim strAddress2
  13.     Dim blnInfo
  14.  
  15.     strFirstName = "John"
  16.     strLastName = "Doe"
  17.     strAddress1 = "1 Main Street"
  18.     strAddress2 = "Nowhere ZA, 12345"
  19. %>
  20.  
  21. <HTML>
  22.     <HEAD>
  23.         <TITLE>PopulateForm Sample</TITLE>
  24.     </HEAD>
  25.  
  26.     <BODY BGCOLOR="White" topmargin="10" leftmargin="10">
  27.  
  28.  
  29.         <!-- Display Header -->
  30.  
  31.         <font size="4" face="Arial, Helvetica">
  32.         <b>PopulateForm Sample</b></font><br>
  33.       
  34.         <hr size="1" color="#000000">
  35.  
  36.  
  37.         <FORM ACTION="">
  38.         
  39.         <!-- Use ASP variables to fill out the form -->
  40.  
  41.         <P>First Name: <INPUT TYPE="TEXT" NAME="FNAME" VALUE="<%=strFirstName%>"></p>
  42.         <P>Last Name: <INPUT TYPE="TEXT" NAME="LNAME" VALUE="<%=strLastName%>"></p>
  43.         <P>Street: <INPUT TYPE="TEXT" NAME="STREET" VALUE="<%=strAddress1%>"></p>
  44.         <P>City State, Zip: <INPUT TYPE="TEXT" NAME="FNAME" VALUE="<%=strAddress2%>"></p>    
  45.  
  46.     </BODY>
  47. </HTML>
  48.