radio button ASP question??

Reply

Join Date: Jun 2005
Posts: 92
Reputation: djbsabkcb is an unknown quantity at this point 
Solved Threads: 0
djbsabkcb's Avatar
djbsabkcb djbsabkcb is offline Offline
Junior Poster in Training

radio button ASP question??

 
0
  #1
Aug 8th, 2005
Below is my source code combined with HTML and ASP. It is a questionnaire but once I click the submit button the choices selected from the radio buttons are not displayed on the screen. What am I doing wrong?






  1.  
  2. <html>
  3. <h1><STRONG><var>eLMS </var>Helpdesk</STRONG></h1>
  4. <form>
  5.  
  6. <%
  7. reason=Request.Form("reason")
  8. %>
  9.  
  10.  
  11.  
  12.  
  13. <!--<td><STRONG>Dear<%=cookie.username%></STRONG><br>-->
  14. <td><STRONG>You recently sent an email to the <var>eLMS </var>Helpdesk regarding a concern or problem you experienced with the new <var>eLMS</var> ( Learning Management System ). Please complete this Customer Satisfaction Survey concerning the service you were provided.</STRONG><br>
  15. </td></tr></form>
  16. <!--<form method="post" action="processform.asp"> -->
  17. <form method="post" action="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\FAA eLMS feedback form_Radio25.html">
  18. <table border="1" bgcolor="#98AFC7">
  19. <tr>
  20. <td align="center">
  21. <br> <br>
  22. <blockquote>
  23. <!--First Name: <input type="text" size="25" name="f1"><br>
  24. Last Name: <input type="text" size="25" name="f2"><br>-->
  25.  
  26. <br>
  27. <DIV align="center "><TABLE>
  28. <br>
  29. <STRONG>What was your reason for contacting the <var>eLMS</var> Help Desk?
  30. </STRONG>
  31. <br>
  32.  
  33.  
  34.  
  35.  
  36. <input type="radio" name = "reason" value = "0"> Unable to login to eLMS<br>
  37.  
  38. <%if instr(reason,"0") then Response.Write("checked")%>
  39.  
  40.  
  41. <input type="radio" name = "reason" value = "1"> Unable to connect to eLMS login page<br>
  42.  
  43. <%if instr(reason,"1") then Response.Write("checked")%>
  44.  
  45. <input type="radio" name = "reason" value = "2">Password reset request<br>
  46.  
  47. <%if instr(reason,"2") then Response.Write("checked")%>
  48.  
  49.  
  50. <input type="radio" name = "reason" value = "3">Unable to launch course<br>
  51.  
  52. <%if instr(reason,"3") then Response.Write("checked")%>
  53.  
  54. <input type="radio" name = "reason" value = "4">Course progress is not being saved<br>
  55.  
  56. <%if instr(reason,"4") then Response.Write("checked")%>
  57.  
  58. <input type="radio" name = "reason" value = "5">Unable to print report or completion certificate<br>
  59.  
  60. <%if instr(reason,"5") then Response.Write("checked")%>
  61.  
  62. <input type="radio" name = "reason" value = "6">Received e-mail message concerning Learning Expiration Notification<br>
  63.  
  64. <%if instr(reason,"6") then Response.Write("checked")%>
  65.  
  66. <input type="radio" name = "reason" value = "7">Other<br>
  67.  
  68. <%if instr(reason,"7") then Response.Write("checked")%>
  69.  
  70. <%
  71. if reason<>"" then%>
  72. <p> <%Response.Write(reason)%></p>
  73. <%end if
  74. %>
  75.  
  76.  
  77.  
  78. <br>
  79. <STRONG>How long did it take to get a response to your e-mail?</STRONG><br>
  80.  
  81.  
  82.  
  83. <input type="radio" name = "response" value = "0">Under 1 hour<br>
  84.  
  85. <%if instr(response,"0") then Response.Write("checked")%>
  86.  
  87.  
  88. <input type="radio" name = "response" value = "1">2 - 6 hours<br>
  89.  
  90. <%if instr(response,"1") then Response.Write("checked")%>
  91.  
  92.  
  93. <input type="radio" name = "response" value = "2">6 - 12 hours<br>
  94.  
  95. <%if instr(response,"2") then Response.Write("checked")%>
  96.  
  97.  
  98. <input type="radio" name = "response" value = "3">1 business day<br>
  99.  
  100. <%if instr(response,"3") then Response.Write("checked")%>
  101.  
  102.  
  103.  
  104. <input type="radio" name = "response" value = "4">More than 1 business day<br>
  105.  
  106. <%if instr(response,"4") then Response.Write("checked")%>
  107.  
  108.  
  109. <input type="radio" name = "response" value = "5">They did not reply to my e-mail<br>
  110.  
  111. <%if instr(response,"5") then Response.Write("checked")%>
  112.  
  113.  
  114. <%
  115. if response<>"" then%>
  116. <p> <%Response.Write(response)%></p>
  117. <%end if
  118. %>
  119.  
  120.  
  121.  
  122.  
  123. <br>
  124. <STRONG>Was your problem or issue resolved?</STRONG><br>
  125.  
  126.  
  127.  
  128. <input type="radio" name = "resolved" value = "0">Yes<br>
  129.  
  130. <%if instr(resolved,"0") then Response.Write("checked")%>
  131.  
  132.  
  133. <input type="radio" name = "resolved" value = "1">No<br>
  134.  
  135. <%if instr(resolved,"1") then Response.Write("checked")%>
  136.  
  137. <%
  138. if resolved<>"" then%>
  139. <p> <%Response.Write(resolved)%></p>
  140. <%end if
  141. %>
  142.  
  143.  
  144.  
  145.  
  146.  
  147. <br>
  148. <STRONG>Overall, how would you rate your customer service experience?</STRONG><br>
  149.  
  150.  
  151.  
  152. <input type="radio" name = "rate" value = "0">Very Satisfied<br>
  153.  
  154. <%if instr(rate,"0") then Response.Write("checked")%>
  155.  
  156.  
  157. <input type="radio" name = "rate" value = "1">Satisfied<br>
  158.  
  159. <%if instr(rate,"1") then Response.Write("checked")%>
  160.  
  161.  
  162. <input type="radio" name = "rate" value = "2">Neutral<br>
  163.  
  164. <%if instr(rate,"2") then Response.Write("checked")%>
  165.  
  166.  
  167. <input type="radio" name = "rate" value = "3">Unsatisfied<br>
  168.  
  169. <%if instr(rate,"3") then Response.Write("checked")%>
  170.  
  171.  
  172. <input type="radio" name = "rate" value = "4">Extremely unsatisfied<br>
  173.  
  174. <%if instr(rate,"4") then Response.Write("checked")%>
  175.  
  176.  
  177. <%
  178. if rate<>"" then%>
  179. <p> <%Response.Write(rate)%></p>
  180. <%end if
  181. %>
  182.  
  183.  
  184. </TABLE>
  185.  
  186.  
  187. </DIV>
  188.  
  189. <br><STRONG>Do you have any comments or suggestions that would help us improve our eLMS customer service? </STRONG>
  190.  
  191. <textarea name="comments" rows="5" cols="50">
  192. </textarea><br><br>
  193.  
  194.  
  195. <input type="submit" value="SUBMIT" name="action">
  196. <input type="reset" value="RESET">
  197. <!--<a href="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\FAA eLMS feedback formradio.html">Feedback</a></font></p> -->
  198. </blockquote>
  199. <br>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC