#971 ✓works_for_me
Robert Turner

IE form element naming issue

Reported by Robert Turner | December 28th, 2009 @ 06:25 PM

While firefox works perfectly with a form element named "length", IE chokes on the post. Only the length field is in the post array when received by the action= program.

Changed element name to something other than length and both firefox and IE work properly.

<!-- <form id="pricing" method="post" action="price.php" onsubmit="return process()"> <input type="text" id="length" name="length" size="5" /> <input type="text" id="width" name="width" size="5" /> <input type="text" id="height" name="height" size="5" /> $ <input type="text" name="price" size="9" id="price" /> <input type="submit" value="Submit" id="test" /> </form> -->

I have never posted here before so please excuse any mistakes in protocol.

Comments and changes to this ticket

  • Juriy Zaytsev

    Juriy Zaytsev December 28th, 2009 @ 10:39 PM

    • State changed from “new” to “works_for_me”

    Works for me with 1.6.1.0.

  • Juriy Zaytsev

    Juriy Zaytsev December 28th, 2009 @ 10:40 PM

    FWIW, using this test page:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
      "http://www.w3.org/TR/html4/strict.dtd">
    <html>
      <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
        <title></title>
        <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js" type="text/javascript"></script>
      </head>
      <body>
        <form id="pricing" method="post" action="price.php" onsubmit="return alert($(this).serialize())">
          <input type="text" id="length" name="length" size="5" /> 
          <input type="text" id="width" name="width" size="5" /> 
          <input type="text" id="height" name="height" size="5" /> $ 
          <input type="text" name="price" size="9" id="price" /> 
          <input type="submit" value="Submit" id="test" /> 
        </form>
      </body>
    </html>
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages