The right post variable
<p>I have a submit buttom like this:</p>

<pre><code>&lt;?php
   echo "&lt;form id='abottom' method='post'&gt;
         &lt;button name='".$row3[$ww]."' id='".$row3[$ww]."' type='button'&gt;More Details&lt;/button&gt;
         &lt;input type='hidden' name='action' value='".$row3[$ww]."' /&gt;
         &lt;/form&gt;";
?&gt;
</code></pre>

<p>and ids are working right of the buttons of the table rows (by <a href="http://en.wikipedia.org/wiki/Firebug_%28software%29" rel="nofollow">Firebug</a>). But when I want to output <code>$_POST</code> in a query <code>while</code> loop, then no one of those works for me:</p>

<pre><code>&lt;?php
    echo $_POST[$row3[$ww]]." &lt;br /&gt;";
    echo $_POST['$row3[$ww]']." &lt;br /&gt;";
    echo $_POST[$row3['$ww']]." &lt;br /&gt;";
    echo $_POST["$row3[$ww]"]." &lt;br /&gt;";
    echo $_POST[$row3["$ww"]]." &lt;br /&gt;";
    echo $_POST[$row3['".$ww."']]." &lt;br /&gt;";
?&gt;
</code></pre>

<p>Which one will be the right? Those above didn't work for me.</p>

<pre><code>  $row3 // is a fetch result of sql3
  $ww // is table rows name on which one is selected
</code></pre>

<p>Raw HTML output example:</p>

<pre><code>&lt;form name ='dets' method='POST'&gt;
    &lt;input class = 'showt' name ='6' id ='6' type='button' value= 'More Details'&gt;&lt;/input&gt;
    &lt;input type='hidden' name='data' value='6' /&gt;
    &lt;noscript&gt;&lt;input type='submit' value='Submit'&gt;&lt;/noscript&gt;
&lt;/form&gt;
</code></pre>
