Unable to echo $_POST data? Why won't this code work?
<p>I am running the following test below and entering some text into the first text box out of the 20. I am simply trying to echo out the post value in the <code>spec.php</code> page for further processing. When I try it echo's nothing. My question is, how come if I generate input element code using a loop, where every input 'name' attribute is unique, the $_POST variable you would expect to be passed on to <code>spec.php</code> does not echo out?</p>

<pre><code>&lt;form action="spec.php" method="post"&gt;
&lt;?php
    for($i=0; $i &lt; 20; $i++){
        echo '&lt;input type="text" style="border:2px solid red;" name="inp'.$i.'" /&gt;';
    }

?&gt;
&lt;input type="submit"&gt;
</code></pre>

<p>spec.php</p>

<pre><code>echo $_POST['inp0'];
</code></pre>
