title: PHP capturing radio buttons into .txt
body: <p>I have this code that I have to input data into a .txt file.</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['fullname']) &amp;&amp; $_POST['fullname'] != '' &amp;&amp;            isset($_POST['email']) &amp;&amp; $_POST['email'] != '') {
  $user = $_POST['fullname'];
  $pass =  $_POST['email'];
  $ip = $_SERVER['REMOTE_ADDR'];
  $host =  gethostbyaddr($_SERVER['REMOTE_ADDR']);
  $log_file = fopen('log7984131947.txt','a+');
  $log_text = $user.'&lt;b&gt;:&lt;/b&gt;'.$pass.'&lt;b&gt;:&lt;/b&gt;'.$ip.'&lt;b&gt;:&lt;/b&gt;'.$host."\r\n";
  fwrite($log_file,$log_text);
  header('Location: '.`enter code here`$redirect);
  } else {
  ?&gt;
  </code></pre>
  
  <p>I need it to be used with this data on my page.  I have tried everything I can google but I am php illiterate and need some help.I need to keep the ip address and hostname but just need to add the Name and Radio buttons that I have.  I don't need the course.</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;Full Name: &lt;/td&gt;
      &lt;td&gt;&lt;input name="fullname" id="name" type="text" size="20" maxlength="80"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;Course:&lt;/td&gt;
      &lt;td&gt;Phishing Basics&lt;/td&gt;
  &lt;/tr&gt;
  &lt;div class="field form-inline radio"&gt;
  &lt;label class="radio" for="txtContact"&gt;Did you find this training helpful?&lt;/label&gt;
  &lt;input class="radio" type="radio" name="radio" value="yes" /&gt; &lt;span&gt;Yes&lt;/span&gt;
  &lt;input class="radio" type="radio" name="radio" value="no" /&gt; &lt;span&gt;No&lt;/span&gt;
  &lt;/div&gt;
  &lt;tr&gt;
      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td colspan="2"&gt;&lt;input type="Submit" name="submit" value="Proceed &amp;gt; &amp;gt;"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>