Inserting checkbox values into MySQL Database with PHP from javascript
<p>This is Javascript</p>

<pre><code>&lt;script language="JavaScript"&gt;
var counter = 1;

function moreFields() {

    counter++;
    var newFields = document.getElementById('readroot').cloneNode(true);
    newFields.id = '';
    newFields.style.display = 'block';
    var newField = newFields.childNodes;
    for (var i=0;i&lt;newField.length;i++) {
        var theName = newField[i].name
        if (theName)
            newField[i].name = theName + counter;
    }
    var insertHere = document.getElementById('writeroot');
    insertHere.parentNode.insertBefore(newFields,insertHere);
    document.getElementById('bil_jenis').value=counter;

}

window.onload = moreFields;
&lt;/script&gt;
</code></pre>

<p>My question is how to insert <code>id="bil_jenis"</code> into database using array in checkbox value,</p>
