By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,040 Members | 1,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,040 IT Pros & Developers. It's quick & easy.

too much text in textarea, submit does nothing with "get" how to use "post"

P: n/a
Ok I use a textarea to store data input by the user, and then upon
them clicking the submit button I store this data to a database. The
problem is once the user inputs too much data (about 3 paragraphs or
2020 characters) when they click on the submit button nothing happens.
When I say nothing happens I mean just that, nothing at all happens
the page just sits there as if nothing at all happened. If I remove
one line for the textarea, and then press the submit button everything
works fine.

Now I read that a way to fix this problem is to use the following:

<form name="form1" action="<%= Request.ServerVariables("SCRIPT_NAME")
%>" method="Get"> --> HERE REPLACE "Get" with "Post"

Now this works great and the form will submit, but I can't later call
Request.QueryString("ProbDescription") and get the data back. So my
question is when I use this Post function how do I save off data, and
get it back when I need it? Also how do I pass this data from one
page to the next?

If you have any idea on how I can fix this problem please let me know.
I have posted the test code I used below, and if you run it and try
and put more than 2500 characters in it nothing happens.

<% @ LANGUAGE = VBScript %>
<% Option Explicit %>
<%

%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Welcome to FirstLogic DRC</title>
<style>

</style>
</head>
<Body>

<form name="form1" action="<%= Request.ServerVariables("SCRIPT_NAME")
%>" method="Get">
<H5><TEXTAREA name="ProbDescription" rows=4 cols=58 style="border: 1
solid #000000"></textarea><br><br>
<input type="submit" value="Test" id=submit1 name=submit1>&nbsp;
</form>
<%
Response.Write Request.QueryString("ProbDescription")
%>

</body>
</html>
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Use Request.Form instead of REquest.querystring.

Ray at work

"Pete Mahoney" <la***********@students.uwlax.edu> wrote in message
news:18**************************@posting.google.c om...
Ok I use a textarea to store data input by the user, and then upon
them clicking the submit button I store this data to a database. The
problem is once the user inputs too much data (about 3 paragraphs or
2020 characters) when they click on the submit button nothing happens.
When I say nothing happens I mean just that, nothing at all happens
the page just sits there as if nothing at all happened. If I remove
one line for the textarea, and then press the submit button everything
works fine.

Now I read that a way to fix this problem is to use the following:

<form name="form1" action="<%= Request.ServerVariables("SCRIPT_NAME")
%>" method="Get"> --> HERE REPLACE "Get" with "Post"

Now this works great and the form will submit, but I can't later call
Request.QueryString("ProbDescription") and get the data back. So my
question is when I use this Post function how do I save off data, and
get it back when I need it? Also how do I pass this data from one
page to the next?

If you have any idea on how I can fix this problem please let me know.
I have posted the test code I used below, and if you run it and try
and put more than 2500 characters in it nothing happens.

<% @ LANGUAGE = VBScript %>
<% Option Explicit %>
<%

%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Welcome to FirstLogic DRC</title>
<style>

</style>
</head>
<Body>

<form name="form1" action="<%= Request.ServerVariables("SCRIPT_NAME")
%>" method="Get">
<H5><TEXTAREA name="ProbDescription" rows=4 cols=58 style="border: 1
solid #000000"></textarea><br><br>
<input type="submit" value="Test" id=submit1 name=submit1>&nbsp;
</form>
<%
Response.Write Request.QueryString("ProbDescription")
%>

</body>
</html>

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.