How to use method $_POST in php
<p>index.php:</p>

<pre><code>&lt;form action="post.php" method="POST"&gt;
  &lt;input type="text" name="option_&lt;?php echo $i ?&gt;" value="" /&gt;
  &lt;input type="submit" name="btnSubmit" value="submit"&gt;
&lt;/form&gt;
</code></pre>

<p>The <code>$i</code> variable is a sequence running from 1 to <code>$n</code>.</p>

<p>post.php:</p>

<pre><code>if(isset($_POST['btnSubmit']))
{
  $option_name = ???;
}
</code></pre>

<p>How do I get the text that was posted for each option?</p>
