title: Dynamic variable echo inside $_POST['']
body: <p>I have a form that has radio inputs that have a dynamically generated name like below:</p>
  
  <pre><code>&lt;input type="number" name="&lt;?php echo date("Y")-4 ?&gt;brand%gross" placeholder="Gross Sales % for &lt;?php echo date("Y")-4 ?&gt;"&gt;
  &lt;input type="number" name="&lt;?php echo date("Y")-3 ?&gt;brand%gross" placeholder="Gross Sales % for &lt;?php echo date("Y")-3 ?&gt;"&gt;
  &lt;input type="number" name="&lt;?php echo date("Y")-2 ?&gt;brand%gross" placeholder="Gross Sales % for &lt;?php echo date("Y")-2 ?&gt;"&gt;
  &lt;input type="number" name="&lt;?php echo date("Y")-1 ?&gt;brand%gross" placeholder="Gross Sales % for &lt;?php echo date("Y")-1 ?&gt;"&gt;
  </code></pre>
  
  <p>Then the form is processed and creates a dynamic table with all the values the user inputs that is then emailed to me. My question is how do I get dynamically generated radios to output to the table that is sent? I know the below isn't correct but just to give you a better look at what I'm trying to do:</p>
  
  <pre><code>if( isset($_POST) ){
      ${ echo date("Y")-4 } = $_POST['{ echo date("Y")-4 }];
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>