Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.08 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <html>
  4. <head>
  5. </head>
  6. <body>
  7.         <%
  8.                 dim answer     
  9.                 answer = Request.QueryString("q_1")
  10.                 if (answer = "amazon") then
  11.                         Response.Write("Nice! You're right. The Amazon River is 4,000 mi long
  12.                         and 98 mi longer than the Mississippi")
  13.                 elseif (answer = "mississippi") then
  14.                         Response.Write("Oops! Not quite. The Mississippi is 3,902 mi long and
  15.                         98 mi shorter thant the Amazon")
  16.                 end if
  17.         %>
  18.         <form method="get">
  19.         Which of the following two rivers is longer?<br />
  20.         <input type="radio" name="q_1" value="amazon"
  21.                 <%
  22.                           If Request.QueryString("q_1") = "amazon" Then
  23.                                 Response.Write " checked=""checked"""
  24.                           End If
  25.                  %>/>Amazon River<br />
  26.          <input type="radio" name="q_1" value="mississippi"
  27.                 <%
  28.                           If Request.QueryString("q_1") = "mississippi" Then
  29.                                 Response.Write " checked=""checked"""
  30.                           End If
  31.                  %>/>Mississippi River<br />
  32.         <input type="submit" value="Submit" /> | <a href = "test.asp">Reset</a>
  33. </body>
  34. </html>