Textarea maximum exceeded

R

RICHARD BROMBERG

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.
 
D

Dave Anderson

RICHARD said:
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/author/dhtml/reference/properties/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.
 
D

Dave Anderson

RICHARD said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top