is this $_POST considered empty
<p>I am trying to code a error callback using php and ajax.</p>

<p>What I cannot get past is, I am assinging a variable to a <code>$_POST</code> in PHP to check for an empty value. If empty, then trigger error message.</p>

<p>However, jquery is passing the post to php as <code>carton%5B0%5D:carton%5B1%5D:</code>.</p>

<p>Would php see this as an empty post? What are these numbers etc after carton? carton is actually an array. thanks</p>

<p>+++UPDATE+++</p>

<p>Why is the error triggered when the statement becomes, !empty rather than empty?. 
This is the code that jquery uses to create an input from a slider change event.</p>

<pre><code>for(var i = 0;i &lt; $(this).val();i++) {
        $("#carton").append('&lt;div data-role="fieldcontain"&gt;&lt;label for="carton" class="ui-input-text"&gt;Enter box ' + (i + 1) + ' number:&lt;/label&gt;&lt;input type="text" name="carton['+i+']" id="carton['+i+']" class="carton ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c" /&gt;&lt;/div&gt;')
      }
</code></pre>
