title: How do I receive post from a form where I name an input as <?php echo $var ?>?
body: <p>I tried <code>$_POST['&lt;?php echo $var ?&gt;</code>] but I should have known that it wouldn't be that easy.</p>
  
  <p>The reason why I try to do is because I have several input boxes with values I take from a database and I'm trying to create an updation script where any of the input box values can be changed.</p>
  
  <p>for example</p>
  
  <pre><code>&lt;form action="process.php" method="post"&gt;
  &lt;?php
  while($variable=mysql_fetch_array($sqlconnec))
  {
  ?&gt;   
  &lt;input type="text" name="&lt;?php echo $variable['col1']?&gt;" value="&lt;?php echo   $variable['val'] ?&gt;" /&gt;
  &lt;?php 
  }
  ?&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>