Search code examples
javascriptinputmootoolssubmit

dynamically added input fields not submitting


here's the jsFiddle. i'm sorry if it doesn't work properly; damn things rarely do for me... i hate jsFiddle, but it gets the code to you faster...

the php document it goes to simply does this:

<pre><?php
print_r($_POST);?>
</pre>

the rows add to the DOM just fine. but the values do not submit to the $_POST array.

what am i missing?

and yes i've read this and this and they don't help. using Mootools, btw, so please don't bother with any jQuery answers.


Solution

  • In your code I see an HTML syntax error. Can you check this line:

    <input class="catCell" name"catlist" id="catList" type="text" tabindex="345"
        value="none or name" onChange="markFilled('catList', this.value);">
    

    The syntax error is on name attribute, that is essential to get form submission work...