Discussion in 'Javascript' started by ph0ngwh0ng, Jul 14, 2004.

  1. ph0ngwh0ng

    ph0ngwh0ng Guest


    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">

    <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"


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


    Alexandre Brizard
    ph0ngwh0ng, Jul 14, 2004
    1. Advertisements

  2. ph0ngwh0ng

    Grant Wagner Guest

    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.
    Grant Wagner, Jul 14, 2004
    1. Advertisements

  3. ph0ngwh0ng wrote:

    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

    Richard Cornford, Jul 15, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.