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

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