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 for a questionnaire I created using HTML and ASP. It contains radio buttons for the selections. I coded it using ASP and HTML. However, when I click the submit button the selections made by user are not displayed on the screen. What am I missing?



HTML code::
  1.  
  2. <html>
  3. <h1><STRONG><var>eLMS </var>Helpdesk</STRONG></h1>
  4. <form>
  5. <!--<td><STRONG>Dear<%=cookie.username%></STRONG><br>-->
  6. <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>
  7. </td></tr></form>
  8. <!--<form method="post" action="processform.asp"> -->
  9. <form method="post" action="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\eLMS FORM1\eLMS feedback form\eLMS_feedback_form_process.html">
  10. <table border="1" bgcolor="#98AFC7">
  11. <tr>
  12. <td align="center">
  13. <br> <br>
  14. <blockquote>
  15. <!--First Name: <input type="text" size="25" name="f1"><br>
  16. Last Name: <input type="text" size="25" name="f2"><br>-->
  17.  
  18. <br>
  19. <DIV align="center "><TABLE>
  20. <br>
  21. <STRONG>What was your reason for contacting the <var>eLMS</var> Help Desk?
  22. </STRONG>
  23. <br>
  24.  
  25.  
  26.  
  27.  
  28. <input type="radio" name = "reason" value = "0"> Unable to login to eLMS<br>
  29. <input type="radio" name = "reason" value = "1">Unable to connect to eMLS login page<br>
  30. <input type="radio" name = "reason" value = "2">Password reset request<br>
  31. <input type="radio" name = "reason" value = "3">Unable to launch course<br>
  32. <input type="radio" name = "reason" value = "4">Course progress is not being saved<br>
  33. <input type="radio" name = "reason" value = "5">Unable to print report or completion certificate<br>
  34. <input type="radio" name = "reason" value = "6">Received e-mail message concerning Learning Expiration Notification<br>
  35. <input type="radio" name = "reason" value = "7">Other<br>
  36.  
  37.  
  38. <br>
  39. <STRONG>How long did it take to get a response to your e-mail?</STRONG><br>
  40.  
  41.  
  42.  
  43. <input type="radio" name = "response" value = "0">Under 1 hour<br>
  44. <input type="radio" name = "response" value = "1">2 - 6 hours<br>
  45. <input type="radio" name = "response" value = "2">6 - 12 hours<br>
  46. <input type="radio" name = "response" value = "3">1 business day<br>
  47. <input type="radio" name = "response" value = "4">More than 1 business day<br>
  48. <input type="radio" name = "response" value = "5">They did not reply to my e-mail<br>
  49.  
  50.  
  51.  
  52.  
  53. <br>
  54. <STRONG>Was your problem or issue resolved?</STRONG><br>
  55.  
  56.  
  57.  
  58. <input type="radio" name = "resolved" value = "0">Yes<br>
  59. <input type="radio" name = "resolved" value = "1">No<br>
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. <br>
  67. <STRONG>Overall, how would you rate your customer service experience?</STRONG><br>
  68.  
  69.  
  70.  
  71. <input type="radio" name = "rate" value = "0">Very Satisfied<br>
  72. <input type="radio" name = "rate" value = "1">Satisfied<br>
  73. <input type="radio" name = "rate" value = "2">Neutral<br>
  74. <input type="radio" name = "rate" value = "3">Unsatisfied<br>
  75. <input type="radio" name = "rate" value = "4">Extremely unsatisfied<br>
  76.  
  77. </TABLE>
  78.  
  79.  
  80. </DIV>
  81.  
  82. <br><STRONG>Do you have any comments or suggestions that would help us improve our eLMS customer service? </STRONG>
  83.  
  84. <textarea name="comments" rows="5" cols="50">
  85. </textarea><br><br>
  86.  
  87.  
  88. <input type="submit" value="SUBMIT" name="action">
  89. <input type="reset" value="RESET">
  90. <!--<a href="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\FAA eLMS feedback formradio.html">Feedback</a></font></p> -->
  91. </blockquote>
  92. <br>
end of HTML code.






ASP code::
  1.  
  2.  
  3. <html>
  4. <head>
  5.  
  6. <title>
  7. eLMS Feedback Form Process
  8. </title>
  9.  
  10.  
  11.  
  12. <body bgcolor = "white">
  13.  
  14. <h1>
  15. FORM OUTPUT
  16. </h1>
  17.  
  18. <blockquote>
  19.  
  20. <b> Reason for contacting:</b> <%=Request.Form("reason")%> <br><br>
  21.  
  22. <blockquote>
  23. <%
  24. theCount = Request.Form.Count
  25. For i = 0 to theCount
  26. Response.Write("<b>"& i & " - " & Request.Form(i) & "</b><br>")
  27. Next
  28. %>
  29. </blockquote>
  30.  
  31. <b> Response Time:</b> <%=Request.Form("response")%> <br><br>
  32.  
  33. <blockquote>
  34. <%
  35. theCount = Request.Form.Count
  36. For i = 0 to theCount
  37. Response.Write("<b>"& i & " - " & Request.Form(i) & "</b><br>")
  38. Next
  39. %>
  40. </blockquote>
  41.  
  42. <b> Issue Resolved:</b> <%=Request.Form("resolved")%> <br><br>
  43.  
  44. <blockquote>
  45. <%
  46. theCount = Request.Form.Count
  47. For i = 0 to theCount
  48. Response.Write("<b>"& i & " - " & Request.Form(i) & "</b><br>")
  49. Next
  50. %>
  51. </blockquote>
  52.  
  53.  
  54. <b> Rate Service:</b> <%=Request.Form("rate")%> <br><br>
  55.  
  56. <blockquote>
  57. <%
  58. theCount = Request.Form.Count
  59. For i = 0 to theCount
  60. Response.Write("<b>"& i & " - " & Request.Form(i) & "</b><br>")
  61. Next
  62. %>
  63. </blockquote>
  64.  
  65.  
  66.  
  67. <b> Comments: </b> <%=Request.Form("comments")%> <br><br><br>
  68.  
  69. </blockquote>
  70.  
  71.  
  72. <hr>
  73.  
  74.  
  75. </html>
  76.  
  77. </head>

end of ASP code::
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 107
Reputation: madmital is an unknown quantity at this point 
Solved Threads: 3
madmital madmital is offline Offline
Junior Poster

Re: radio button ASP question??

 
0
  #2
Aug 11th, 2005
You wanna use this form action
  1. <!--<form method="post" action="processform.asp"> -->

instead of this
  1. <form method="post" action="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\eLMS FORM1\eLMS feedback form\eLMS_feedback_form_process.html">

I'm not sure excatly what you're trying to do, but if you want to loop through the radio buttons it should be like this:
  1. theCount = Request.Form.Count
  2. For i = 1 to theCount-1
  3. Response.Write("<b>"& i & " - " & Request.Form(i) & "</b><br>")
  4. Next


But itsn't want you're trying to do really smth like:
html code:

  1. <input type="radio" name = "reason" value = "unable"> Unable to login to eLMS<br>
  2. <input type="radio" name = "reason" value = "Unable to connect to eMLS login page">Unable to connect to eMLS login page<br>
  3. <input type="radio" name = "reason" value = "Password reset request">Password reset request<br>
  4. <input type="radio" name = "reason" value = "Unable to launch course">Unable to launch course<br>
  5. <input type="radio" name = "reason" value = "Course progress is not being saved">Course progress is not being saved<br>
  6. <input type="radio" name = "reason" value = "Unable to print report or completion certificate">Unable to print report or completion certificate<br>
  7. <input type="radio" name = "reason" value = "Received e-mail message concerning Learning Expiration Notification">Received e-mail message concerning Learning Expiration Notification<br>
  8. <input type="radio" name = "reason" value = "Other">Other<br>
  9.  
  10.  
  11. "....and so on"

asp code:
  1. <b> Reason for contacting:</b> <%=Request.Form("reason")%> <br><br>
  2. <b> Response Time:</b> <%=Request.Form("response")%> <br><br>
  3. <b> Issue Resolved:</b> <%=Request.Form("resolved")%> <br><br>
  4.  
  5. "....and so on"
Reply With Quote Quick reply to this message  
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

Re: radio button ASP question??

 
0
  #3
Aug 11th, 2005
I tried that but it still does not display the infomation selected by the user(s). I also switched it to processform.asp but still same results, No display.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 107
Reputation: madmital is an unknown quantity at this point 
Solved Threads: 3
madmital madmital is offline Offline
Junior Poster

Re: radio button ASP question??

 
0
  #4
Aug 11th, 2005
OK...check out the attached file.

I've edited it to do what I think you need it to do (?).
It works for me on IIS.
Attached Files
File Type: zip example.zip (1.7 KB, 78 views)
Reply With Quote Quick reply to this message  
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

Re: radio button ASP question??

 
0
  #5
Aug 12th, 2005
I will try it and let you know what happens.

Thanks
Reply With Quote Quick reply to this message  
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

Re: radio button ASP question??

 
0
  #6
Aug 14th, 2005
So Madmittal,

When you click Submit button does the next page display the radio buttons statements that were selected and the comments that were keyed in.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 107
Reputation: madmital is an unknown quantity at this point 
Solved Threads: 3
madmital madmital is offline Offline
Junior Poster

Re: radio button ASP question??

 
0
  #7
Aug 15th, 2005
Yes.

Something like:

FORM OUTPUT
Reason for contacting: Unable to launch course

Response Time: 1 business day

Issue Resolved: Yes

Rate Service: Unsatisfied

Comments: blah
You get smth else?
Reply With Quote Quick reply to this message  
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

Re: radio button ASP question??

 
0
  #8
Aug 15th, 2005
Yes I am only getting the header display. No radio value buttons displayed. I am going to check and make sure my computer is running on IIS but I thought I followed the directions pretty well. Exactly what are those single quote parenthesis ( ' )on the left side of the code for?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 107
Reputation: madmital is an unknown quantity at this point 
Solved Threads: 3
madmital madmital is offline Offline
Junior Poster

Re: radio button ASP question??

 
0
  #9
Aug 15th, 2005
Good idea...if you don't get an output like above smth is wrong.

The (') in front of a line means that the line is not executed. It's the equivilant of (//) in JavaScript....
Reply With Quote Quick reply to this message  
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

Re: radio button ASP question??

 
0
  #10
Aug 15th, 2005
Well someone stated that it must run on a server. I thought I setup my desktop with IIS configurations. The steps I used to install IIS are as follows:

1. Open control panel
2. Go to add/remove programs then go to add window components
3. Highlight Internet Information Services
4. Click details then check every box in window.
5. Click next then follow instructions and insert disk of Windows XP when asked.

Is this correct or am I missing something?
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