title: Appending data to a csv file from a php form but also adding static data every time
body: <p>Ok I almost have it working but am having trouble escaping the html to preserve the link I'm missing something here .. I'm sure it's simple </p>
  
  <pre><code>if($_POST['formSubmit'] == "Submit")
  
      $varUserName = $_POST['username'];
  
      $varPW = $_POST['PW'];
  
      $varEmail = $_POST['email'];
  
      {
  
          $fs = fopen("testcsv.csv","a");
  
          fputcsv($fs, array($varUserName,$varPW,$varEmail,"admin","title",",category","some text here &lt;a href=""http://$varUserName.site.com/splash/""&gt;site.com&lt;/a&gt;",));
  
          fclose($fs);
  
          exit;
      }
  ?&gt;
  </code></pre>