Page 1 of 1

textarea to big

Posted: Mon Aug 09, 2004 5:14 am
by zeroanarchy
Hi all well looks like I have run into another problem.

I allow the user to add comments to a textarea and then allow them to view their comments on the next page letter.php. The problem is that if the user enters to many characters then the submit button does not work.

I am under the impression it is related to the POST limit 1765. Any ideas on a work around?

I thought about using a cookie, but don't a lot of people block cookie's?

Cheers
zeroanarchy

Posted: Mon Aug 09, 2004 6:36 am
by ldomingues
I don't think recent http servers have such a limit.

Check for magic_quotes or output the POSTed data to the iframe to check for data truncation.

Posted: Mon Aug 09, 2004 8:18 am
by tim
perhaps this is a good thing

people could flood your board system with ease if they are allowed such a large amount of characters to enter

Posted: Mon Aug 09, 2004 8:09 pm
by zeroanarchy
1782 characters not including spaces, if the characters are exceed by 1 then the submit button does not work.

After a bit of reading the only solution is to store the comments box text into a cookie, the problem with this is that if the user has cookies disabled then this message will not transfer onto the next page.

I am under the impression that this is an IE problem, Netscape and Mozilla do not have a character limit.

So if you find the submit button doesn't work count the text you are trying to store in the query.

Cheers
zeroanarchy

Posted: Mon Aug 09, 2004 8:17 pm
by feyd
how are you submitting this stuff? I'm going to guess your form is a get, which has a limit that approaches very fast. Could you post your code for this form?

Posted: Mon Aug 09, 2004 8:26 pm
by zeroanarchy
Hi Feyd

The limit is based on Post I have worked out including spaces the limit is 1944 characters on IE, if you use Netscape or Motzilla the restriction is much higher, how high I don't know as I have not tested it.

Get is something like 230 characters.

if you want to test it take a look at
http://www.envirotalk.com.au/Styx/mail.php

Don’t add your details to the bottom just add 191 characters to the text area and hit submit. Watch what happens on IE then add 192 characters and test again.

Cheers

zeroanarchy

Posted: Mon Aug 09, 2004 9:24 pm
by feyd

Code: Select all

<form action ="letter.php">
is a get.