473,507 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Textarea maximum exceeded

I have a small ASP program ( http://www.dickbrom.com/aspsend/ ) that
accepts data from a Form and e-mails it.
The form has a Textarea ( <TEXTAREA NAME="MessageBig" ROWS=10 COLS=50>
</TEXTAREA> ).

If you enter too many characters in the textarea the Submit button does not
function.

Is it possible to set a maximum number of characters or possibly truncate
anything over a fixed number to fix this problem.

I do not want to use Javascript.
Jul 22 '05 #1
5 2995
Nope... you will have to do a length/count on it when it comes in and
manually validate it.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"RICHARD BROMBERG" <di******@worldnet.att.net> wrote in message
news:s0********************@bgtnsc05-news.ops.worldnet.att.net...
I have a small ASP program ( http://www.dickbrom.com/aspsend/ ) that
accepts data from a Form and e-mails it.
The form has a Textarea ( <TEXTAREA NAME="MessageBig" ROWS=10 COLS=50>
</TEXTAREA> ).

If you enter too many characters in the textarea the Submit button does
not function.

Is it possible to set a maximum number of characters or possibly truncate
anything over a fixed number to fix this problem.

I do not want to use Javascript.

Jul 22 '05 #2
truncate:

a=request.form("a")
a=left(a,100)

/Lasse

"RICHARD BROMBERG" <di******@worldnet.att.net> wrote in message
news:s0********************@bgtnsc05-news.ops.worldnet.att.net...
I have a small ASP program ( http://www.dickbrom.com/aspsend/ ) that
accepts data from a Form and e-mails it.
The form has a Textarea ( <TEXTAREA NAME="MessageBig" ROWS=10 COLS=50>
</TEXTAREA> ).

If you enter too many characters in the textarea the Submit button does not function.

Is it possible to set a maximum number of characters or possibly truncate
anything over a fixed number to fix this problem.

I do not want to use Javascript.

Jul 22 '05 #3
RICHARD BROMBERG wrote:
The form has a Textarea ( <TEXTAREA NAME="MessageBig" ROWS=10
COLS=50> </TEXTAREA> ).

If you enter too many characters in the textarea the Submit button
does not function.


I don't believe this. The submit button does not care what is in the
TEXTAREA. But looking at your form, I can see that you are using GET instead
of POST, which is certainly the cause of your problem:

"When using the get method to send data to an HTTP server, the amount
of data that can be sent is limited by the maximum length of a URL.
In this case the URL cannot be longer than 2048 bytes."

http://msdn.microsoft.com/workshop/a...ies/method.asp

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #4
Thanks one and all .

It's working fne now.
"RICHARD BROMBERG" <di******@worldnet.att.net> wrote in message
news:s0********************@bgtnsc05-news.ops.worldnet.att.net...
I have a small ASP program ( http://www.dickbrom.com/aspsend/ ) that
accepts data from a Form and e-mails it.
The form has a Textarea ( <TEXTAREA NAME="MessageBig" ROWS=10 COLS=50>
</TEXTAREA> ).

If you enter too many characters in the textarea the Submit button does
not function.

Is it possible to set a maximum number of characters or possibly truncate
anything over a fixed number to fix this problem.

I do not want to use Javascript.

Jul 22 '05 #5
RICHARD BROMBERG wrote:
Thanks one and all .

It's working fne now.


Have you fixed the whitespace problem with your TEXTAREA? In case you were
unaware, the browser renders everything between the opening and closing
tags, including whitespace. In your case, you had a line break and some
indentation.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2899
by: John | last post by:
I am trying to create thumbnails from 2500 pictures. But I always get a Maximum execution time of 30 seconds exceeded" at the statement with the method with imagejpeg or imagedestroy after...
4
18312
by: sumithradevi | last post by:
Hello Friends, I am getting the following error. java.sql.SQLException: ORA-00020: maximum number of processes (100) exceeded I am closing all my resultsets and all my connections in the try...
0
1942
by: Bill Loren | last post by:
Hi ppl, Trying to substitute some html tags within a big html file using RE ended up with the "RuntimeError: maximum recursion limit exceeded" message. Any idea why that might happen and how...
1
5083
by: Simon Burton | last post by:
Hi, I am pickling big graphs of data and running into this problem: File "/usr/lib/python2.2/pickle.py", line 225, in save f(self, object) File "/usr/lib/python2.2/pickle.py", line 414, in...
6
44930
by: Georgy Pruss | last post by:
Sometimes I get this error. E.g. >>> sum = lambda n: n<=1 or n+sum(n-1) # just to illustrate the error >>> sum(999) 499500 >>> sum(1000) ............ RuntimeError: maximum recursion depth...
4
5258
by: Simon | last post by:
I have another question.. Let's take a textarea with the parameter: "rows=4" (<textarea rows=4 onkeydown="CheckScrollbar()"> ) If you start typing the scrollbar at the right is not active. Only...
11
5523
by: Chris Hayes | last post by:
Greetings, I have an ASP.NET page that accepts input from an HtmlInputFile object. I have set the maximum size for HttpRequests to 2MB in the web.config file. And now I am trying to CATCH...
6
3442
by: @sh | last post by:
Guys, Working on a function to alert the user to too many characters being entered into a text area, I've put together this function so far borrowing bits from resource websites... function...
0
3222
by: jobs | last post by:
re: Oracle Exceeded maximum idle time I have asp.net web gridview that is populated by a function that calls an Oracle procedure that returns a dataset. At most, it might take 2 or 4 seconds to...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.