TEXTAREA issues

P

ph0ngwh0ng

Hi,

I am building a simple form with a textarea and a submit button. The
problem is that when there is more than about 1700-1800 characters in
the textarea, the form won't submit(you can click the button but
nothing happens). The problem appears on Windows 2000 SP4 with the
latest fixes for IE. Problem is not happening on XP machines.

Here is my form declaration:

<form name="Modification" method="get" action="/test/do_modif.php">

<p>
<textarea name="texte1" rows="10" maxlength="32000" wrap=virtual
cols="70">Insert long text here</textarea><BR>

<input type="button" name="submit" value="Soumettre les changements"
ONCLICK="this.form.submit()">
</p>

</form>

A regular input type="submit" doesnt work either.

Thanks

Alexandre Brizard
 
G

Grant Wagner

ph0ngwh0ng said:
Hi,

I am building a simple form with a textarea and a submit button. The
problem is that when there is more than about 1700-1800 characters in
the textarea, the form won't submit(you can click the button but
nothing happens). The problem appears on Windows 2000 SP4 with the
latest fixes for IE. Problem is not happening on XP machines.

Here is my form declaration:

<form name="Modification" method="get" action="/test/do_modif.php">

<p>
<textarea name="texte1" rows="10" maxlength="32000" wrap=virtual
cols="70">Insert long text here</textarea><BR>

<input type="button" name="submit" value="Soumettre les changements"
ONCLICK="this.form.submit()">
</p>

</form>

A regular input type="submit" doesnt work either.

Thanks

Alexandre Brizard

You are using METHOD="GET", which attempts to send the contents of the
form on the URL. The maximum length of a URL in IE is somewhere around
2000 characters. Although the server _might_ be able to handle it, IE has
taken the approach to not submit the form when the URL length exceeds
some internal limit.

Use METHOD="POST" and you won't have this problem.
 
R

Richard Cornford

ph0ngwh0ng wrote:
Here is my form declaration:
<input type="button" name="submit"
value="Soumettre les changements"
ONCLICK="this.form.submit()">
<snip>

One of the consequences of naming a form control "submit" is that the
browser will replace the reference to form's submit method with a
reference to that coincidentally named form control. Therefor the code
that you have posted cannot function at all (it would error and never
attempt to submit the form). Generally it is a bad idea to post code
that you have not verified as actually exhibiting the problem being
described.

Richard.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top