title: PHP passing a variable from HTML to another PHP file
body: <p>Ok, so im making and admin page which requires to deletes entries from databases, and i cant figure out how to pass the id variable of the post to another php file.</p>
  
  <pre><code>echo '&lt;form method="post" action="delete_member_post.php" style="text-align:center;" id="delete_post"&gt;';
  echo '&lt;p style="text-align:center; font-size:20px;"&gt; &lt;font font-size:20px face="Rockwell" color="#680000"&gt; Select post to delete:&lt;/font&gt;';
  echo '&lt;select name="delete" form="delete_post"&gt;';
  for ($z=1; $z&lt;=$text["id"]; $z++)
  {
      $c=$c+1;
      echo '&lt;option value="' . $c . '"&gt;' . $c . ' &lt;/option&gt;';
  }
  echo '&lt;/select&gt; &lt;br&gt;';
  echo '&lt;input type="submit" value="Submit Choice"=&gt;';
  echo '&lt;/form&gt;';
  </code></pre>
  
  <p>After the loop in the PHP file im echoing $c (based on how many entries the DB has) and its printing my options. </p>
  
  <p>In the other file im using </p>
  
  <pre><code>$i = $_POST["$c"];  
  </code></pre>
  
  <p>to get the id that had been chosen but all i get is the same error,  Undefined variable and  Undefined index.</p>
  
  <p>Thanks for your time.</p>