title: How to input value from buttons and checkboxes to textarea
body: <p>I have looked around on the site, but I haven't found much of anything of what I want. Anyway, I am a self taught HTML/CSS person. Most of my experience is in using Wordpress, but anyhow, I am trying create a interactive site (not in wordpress unfortunately) that uses forms to create an output of a huge set of code.  </p>
  
  <pre><code>&lt;form id="drawing"&gt;
  &lt;input type="radio" name="draw" value="normal"&gt;Normal&lt;br /&gt;
  &lt;input type="radio" name="draw" value="custom"&gt;Custom&lt;br /&gt;
  &lt;/form&gt;
  
  &lt;input type="submit" value="Print Code"&gt;&lt;br /&gt;
  
  &lt;textarea&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>I want to print the value taken from the radio buttons into the textarea like this: drawtype = (value here),</p>
  
  <p>So what would be the easiest, lighter-weight way to go about this? I have seen this topic: <a href="https://stackoverflow.com/questions/19297004/how-to-output-checkboxes-from-an-html-form-by-php">How to output checkboxes from an HTML form by PHP?</a> but is there a simpler way to do it? I have not had much experience with php at all, so that is why I'm asking this. If there is another answer that I didn't notice then it would be nice to be redirected to it. (especially since this is my first question.)</p>
  
  <p>Thanks.</p>