| | |
radio button ASP question??
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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?
ASP Syntax (Toggle Plain Text)
<html> <h1><STRONG><var>eLMS </var>Helpdesk</STRONG></h1> <form> <% reason=Request.Form("reason") %> <!--<td><STRONG>Dear<%=cookie.username%></STRONG><br>--> <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> </td></tr></form> <!--<form method="post" action="processform.asp"> --> <form method="post" action="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\FAA eLMS feedback form_Radio25.html"> <table border="1" bgcolor="#98AFC7"> <tr> <td align="center"> <br> <br> <blockquote> <!--First Name: <input type="text" size="25" name="f1"><br> Last Name: <input type="text" size="25" name="f2"><br>--> <br> <DIV align="center "><TABLE> <br> <STRONG>What was your reason for contacting the <var>eLMS</var> Help Desk? </STRONG> <br> <input type="radio" name = "reason" value = "0"> Unable to login to eLMS<br> <%if instr(reason,"0") then Response.Write("checked")%> <input type="radio" name = "reason" value = "1"> Unable to connect to eLMS login page<br> <%if instr(reason,"1") then Response.Write("checked")%> <input type="radio" name = "reason" value = "2">Password reset request<br> <%if instr(reason,"2") then Response.Write("checked")%> <input type="radio" name = "reason" value = "3">Unable to launch course<br> <%if instr(reason,"3") then Response.Write("checked")%> <input type="radio" name = "reason" value = "4">Course progress is not being saved<br> <%if instr(reason,"4") then Response.Write("checked")%> <input type="radio" name = "reason" value = "5">Unable to print report or completion certificate<br> <%if instr(reason,"5") then Response.Write("checked")%> <input type="radio" name = "reason" value = "6">Received e-mail message concerning Learning Expiration Notification<br> <%if instr(reason,"6") then Response.Write("checked")%> <input type="radio" name = "reason" value = "7">Other<br> <%if instr(reason,"7") then Response.Write("checked")%> <% if reason<>"" then%> <p> <%Response.Write(reason)%></p> <%end if %> <br> <STRONG>How long did it take to get a response to your e-mail?</STRONG><br> <input type="radio" name = "response" value = "0">Under 1 hour<br> <%if instr(response,"0") then Response.Write("checked")%> <input type="radio" name = "response" value = "1">2 - 6 hours<br> <%if instr(response,"1") then Response.Write("checked")%> <input type="radio" name = "response" value = "2">6 - 12 hours<br> <%if instr(response,"2") then Response.Write("checked")%> <input type="radio" name = "response" value = "3">1 business day<br> <%if instr(response,"3") then Response.Write("checked")%> <input type="radio" name = "response" value = "4">More than 1 business day<br> <%if instr(response,"4") then Response.Write("checked")%> <input type="radio" name = "response" value = "5">They did not reply to my e-mail<br> <%if instr(response,"5") then Response.Write("checked")%> <% if response<>"" then%> <p> <%Response.Write(response)%></p> <%end if %> <br> <STRONG>Was your problem or issue resolved?</STRONG><br> <input type="radio" name = "resolved" value = "0">Yes<br> <%if instr(resolved,"0") then Response.Write("checked")%> <input type="radio" name = "resolved" value = "1">No<br> <%if instr(resolved,"1") then Response.Write("checked")%> <% if resolved<>"" then%> <p> <%Response.Write(resolved)%></p> <%end if %> <br> <STRONG>Overall, how would you rate your customer service experience?</STRONG><br> <input type="radio" name = "rate" value = "0">Very Satisfied<br> <%if instr(rate,"0") then Response.Write("checked")%> <input type="radio" name = "rate" value = "1">Satisfied<br> <%if instr(rate,"1") then Response.Write("checked")%> <input type="radio" name = "rate" value = "2">Neutral<br> <%if instr(rate,"2") then Response.Write("checked")%> <input type="radio" name = "rate" value = "3">Unsatisfied<br> <%if instr(rate,"3") then Response.Write("checked")%> <input type="radio" name = "rate" value = "4">Extremely unsatisfied<br> <%if instr(rate,"4") then Response.Write("checked")%> <% if rate<>"" then%> <p> <%Response.Write(rate)%></p> <%end if %> </TABLE> </DIV> <br><STRONG>Do you have any comments or suggestions that would help us improve our eLMS customer service? </STRONG> <textarea name="comments" rows="5" cols="50"> </textarea><br><br> <input type="submit" value="SUBMIT" name="action"> <input type="reset" value="RESET"> <!--<a href="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\FAA eLMS feedback formradio.html">Feedback</a></font></p> --> </blockquote> <br>
![]() |
Similar Threads
Other Threads in the ASP Forum
- Previous Thread: Unable to insert data into SQL Database
- Next Thread: radio button no display??
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





