radio button ASP question??
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::
<html>
<h1><STRONG><var>eLMS </var>Helpdesk</STRONG></h1>
<form>
<!--<td><STRONG>Dear<%=cookie.username%></STRONG>-->
<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>
</td></tr></form>
<!--<form method="post" action="processform.asp"> -->
<form method="post" action="C:\Documents and Settings\Administrator.ARC00WN82534000\Desktop\eLMS FORM1\eLMS feedback form\eLMS_feedback_form_process.html">
<table border="1" bgcolor="#98AFC7">
<tr>
<td align="center">
<blockquote>
<!--First Name: <input type="text" size="25" name="f1">
Last Name: <input type="text" size="25" name="f2">-->
<DIV align="center "><TABLE>
<STRONG>What was your reason for contacting the <var>eLMS</var> Help Desk?
</STRONG>
<input type="radio" name = "reason" value = "0"> Unable to login to eLMS
<input type="radio" name = "reason" value = "1">Unable to connect to eMLS login page
<input type="radio" name = "reason" value = "2">Password reset request
<input type="radio" name = "reason" value = "3">Unable to launch course
<input type="radio" name = "reason" value = "4">Course progress is not being saved
<input type="radio" name = "reason" value = "5">Unable to print report or completion certificate
<input type="radio" name = "reason" value = "6">Received e-mail message concerning Learning Expiration Notification
<input type="radio" name = "reason" value = "7">Other
<STRONG>How long did it take to get a response to your e-mail?</STRONG>
<input type="radio" name = "response" value = "0">Under 1 hour
<input type="radio" name = "response" value = "1">2 - 6 hours
<input type="radio" name = "response" value = "2">6 - 12 hours
<input type="radio" name = "response" value = "3">1 business day
<input type="radio" name = "response" value = "4">More than 1 business day
<input type="radio" name = "response" value = "5">They did not reply to my e-mail
<STRONG>Was your problem or issue resolved?</STRONG>
<input type="radio" name = "resolved" value = "0">Yes
<input type="radio" name = "resolved" value = "1">No
<STRONG>Overall, how would you rate your customer service experience?</STRONG>
<input type="radio" name = "rate" value = "0">Very Satisfied
<input type="radio" name = "rate" value = "1">Satisfied
<input type="radio" name = "rate" value = "2">Neutral
<input type="radio" name = "rate" value = "3">Unsatisfied
<input type="radio" name = "rate" value = "4">Extremely unsatisfied
</TABLE>
</DIV>
<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>
<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>
end of HTML code.
ASP code::
<html>
<head>
<title>
eLMS Feedback Form Process
</title>
<body bgcolor = "white">
<h1>
FORM OUTPUT
</h1>
<blockquote>
<b> Reason for contacting:</b> <%=Request.Form("reason")%>
<blockquote>
<%
theCount = Request.Form.Count
For i = 0 to theCount
Response.Write("<b>"& i & " - " & Request.Form(i) & "</b>")
Next
%>
</blockquote>
<b> Response Time:</b> <%=Request.Form("response")%>
<blockquote>
<%
theCount = Request.Form.Count
For i = 0 to theCount
Response.Write("<b>"& i & " - " & Request.Form(i) & "</b>")
Next
%>
</blockquote>
<b> Issue Resolved:</b> <%=Request.Form("resolved")%>
<blockquote>
<%
theCount = Request.Form.Count
For i = 0 to theCount
Response.Write("<b>"& i & " - " & Request.Form(i) & "</b>")
Next
%>
</blockquote>
<b> Rate Service:</b> <%=Request.Form("rate")%>
<blockquote>
<%
theCount = Request.Form.Count
For i = 0 to theCount
Response.Write("<b>"& i & " - " & Request.Form(i) & "</b>")
Next
%>
</blockquote>
<b> Comments: </b> <%=Request.Form("comments")%>
</blockquote>
<hr>
</html>
</head>
end of ASP code::
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
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.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
I will try it and let you know what happens.
Thanks
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
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.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
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?
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
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?
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
Am I also suppose to place the html file inside the 'C:\Inetpub\wwwroot\' folder with the asp file?
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
I got it to work. thanks a lot.
What I don't understand is why can't I just click the html document link inside the wwwroot folder and it work that way. Instead I have to open internet explorer and do the local host bit.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
Okay, I have created this survey. My next step is to create a table in MS Access that holds the records of data when user submit the survey. I created a blank table with five columns as follows: response, reason, rate, comments and resolved. Can someone point me in the direction I need to go to read and write to the table from the questionnaire that was created using ASP? Or do I have other steps I need to complete first? Any direction would be appreciated.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
I am suppose to use Microsoft Access for now. I think after I finish this project I will be using Oracle database not sure.
What does this statment mean?
PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE.
I tried to find it in my ASP book but no luck. Also, does VB script use semi-colons because there are a couple of lines of code that have them and I did not think VBScript and ASP used semicolons.
Appreciate the comments in the code helps out alot for some of the parts that I can understand.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
Okay. Lets take this step by step to make sure I am doing this right. This is all a learning experiment project for me. It has no time committments. So I am given a piece of paper,and asked to create this questionnaire so that feedback will be received and evaluated by management team.
First step: Create the questionnaire in html.
Second step: Write the code in ASP to get information back from client.
Third Step: Create a table in Access to capture the feedback sent back from the client. This table consists of six columns which include the names( reason,response,rate,resolved and comments), and primary key. Fourth: Write the code in ASP to read and write information from questionnaire to the table.
Fifth: Task Complete.
Does this sound like the steps needed to complete this task.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0
Question: The database name for the statement below would that be Microsoft Access, the file name of the table or something else? Or is it the name you give when you set up the DSN?
Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("database_name.mdb")
Question: How do you know which method to use or have to use between OLE DB or ODBC to connect to a database?
Question: When I try to create the DSN, when I decide to Windows NT authentication or SQL server, either way I receive an error connection failed, any ideas why? I am using Windows XP professional.
djbsabkcb
Junior Poster in Training
92 posts since Jun 2005
Reputation Points: 14
Solved Threads: 0