title: Why does the post method not detect the submitted name?
body: <p>I have a 9x9 field. When I press <strong>any</strong> button, I want it to display the coordinates, but for some reason it doesn't.</p>
  <p>Does someone know where it goes wrong? Am I doing something which is impossible?</p>
  <p>Current code:</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  echo &quot;&lt;iframe name='frame'&gt;&lt;/iframe&gt;&quot;;
  $aww_ar = array();
  // SELECT PLAYING FIELD ValLUES
  $th = 10;
  $tw = 10;
  // Amount of numbers
  $amount = 5;
  // Create 2d array
  for ($y = 0;$y &lt; $th;$y++) {
      for ($x = 0;$x &lt; $tw;$x++) {
          $randomise = rand(1, $amount);
          $aww_ar[$x][$y] = $randomise;
      }
  }
  
  // create 2d table array
  ?&gt;        
      &lt;form method=&quot;post&quot; target=&quot;frame&quot; action=&quot;&quot;&gt;
          &lt;table&gt;
          &lt;?php
  foreach ($aww_ar as $x =&gt; &amp; $value) {
      echo &quot;&lt;tr&gt;&quot;;
      foreach ($aww_ar[0] as $y =&gt; $v) {
          echo &quot;&lt;td&gt;&lt;input type='submit' name='&quot; . $x . ',' . $y . &quot;' value='&quot; . $aww_ar[$x][$y] . &quot;'&gt;&lt;/td&gt;&quot;;
      }
      echo &quot;&lt;/tr&gt;&quot;;
  }
  ?&gt;
          &lt;/table&gt;
      &lt;/form&gt;
      &lt;?php
  if (isset($_POST[$x . ',' . $y])) {
      echo $x . ',' . $y;
  }
  </code></pre>