jQuery generated input fields: read form values in php?
<p>I'm getting a json string with jQuery and then for each value, I add a checkbox.</p>

<pre><code>function dateClick(url){
$.getJSON(url,
    function(data){

        var row = $("#HourSelectionTable tbody").html();
        $("#HourSelectionTable").empty();
        $("#HourSelectionTable").append(row);

        $.each(data, function(i,data){
            if(data.free == 'true'){
                $("&lt;tr&gt;&lt;td&gt;&lt;input id='"+data.date+"-"+data.hour+"' value='"+data.date+"-"+data.hour+"'type='checkbox' onclick='hourClick(this.id);' /&gt;&lt;/td&gt;&lt;td&gt;"+data.hour+"&lt;/td&gt;&lt;/tr&gt;").appendTo("#HourSelectionTable");                    
            }else {
                $("&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;"+data.hour+"&lt;/td&gt;&lt;/tr&gt;").appendTo("#HourSelectionTable");                    
            }

            if ($("#HourSelectionTable").is(":hidden")) {
                $("#HourSelectionTable").slideDown("slow");
            }

        });
    });
</code></pre>

<p>}</p>

<p>Now, when I post the form and look at $_POST, there is nothing there.</p>

<pre><code>echo ("&lt;pre&gt;");
print_r($_POST);
echo ("&lt;/pre&gt;");
</code></pre>

<p>Gives:</p>

<pre><code>Array
(
    [Submit] =&gt; Bevestig
)
</code></pre>

<p>How can I solve this?</p>

<p>Dennis</p>
