title: Click link in a PHP script and have the script continue
body: <p>I am trying to click a link that was generated through PHP (I extracted the data and made them into strings). I would like to use part of the string incorporated into a link to execute another PHP script. My problem is I can not pass the variable to another PHP file by clicking on the link. NOTE: this code is between PHP tags.
  This works:</p>
  
  <pre><code>&lt;a href=StandAloneRotate.php?bearingstate=TN&gt;
  </code></pre>
  
  <p>This does not work:</p>
  
  <pre><code>&lt;a href=StandAloneRotate.php?bearingstate=$State&gt;
  </code></pre>
  
  <p>I guess my problem is incorrect syntax after the = sign. Any help would be appreciated.</p>