I couldn't run your code (seeing as you didn't post it all) so I wrote my own version for testing. I can't reproduce your results using FF2.

<form name=test action=test.cgi method=get> <select name=ordertype id=ordertype onchange=" document.getElementById('orderparams').innerHTML = ( '<input type=text name=duration>' ); "> <option value=halt>Halt <option value=attack>Attack <option value=capture>Capture <option value=move>Move <option value=rest>Rest <option value=wait>Wait </select> <div id=orderparams></div> <div><input type=submit value='Issue Order'></div> </form>

After changing the value of the SELECT, putting a foo in the text box that appears and pressing the submit button, FF requested the URI

.../test.cgi?ordertype=move&duration=foo

Does the above work for you too?

Note, the HTML was a local file (file:// scheme). That might make a difference.


In reply to Re: Submitting forms with CGI::Ajax-created fields by ikegami
in thread Submitting forms with CGI::Ajax-created fields by dsheroh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.