I've been asked to create an online survey with 5 <textarea> elements. I need to plan for the response to each question to be a few thousand characters.
This is the construct I've used in the past for other elements such as checkboxes or radio buttons:
Using the GET method, I can write strings containing several dozen characters but at some point, it appears the strings get too long and nothing gets added to the table. Using the POST method, I've only been successful creating a new record with empty fields.
I've considered using
and writing to a text file but I don't know how write the reference to the <textarea>.
For example, open and closing the file is easy enough, but I'm stuck on the line that actually writes the value to the file:
Or in the RecordSet approach:
Many thanks for any assistance you can provide. Below is enough of the actual html so you can see how the various objects are named.
This is the construct I've used in the past for other elements such as checkboxes or radio buttons:
Code:
With rs
.AddNew
.Fields("Q1") = Request.QueryString("Q1")
.Update
End With
I've considered using
Code:
Request.Form
For example, open and closing the file is easy enough, but I'm stuck on the line that actually writes the value to the file:
Code:
txtfile.Writeline(???)
Or in the RecordSet approach:
Code:
.Fields("Q1") = Request.Form(???)
Many thanks for any assistance you can provide. Below is enough of the actual html so you can see how the various objects are named.
Code:
<html>
<head>
</head>
<body>
<form name="Survey" method="get" action="SurveyWrite.asp">
<table>
<tr>
<td>
<textarea cols="70" name="Q1" rows="10" wrap="soft">Enter your response to Question #1 here.
</td>
</tr>
<tr>
<td>
<input type="submit" name="submitButton" value="Submit Survey">
<input type="reset" name="resetButton" value="Clear Survey">
</td>
</tr>
</table>
</form>
</body>
</html>