title: Using a form to generate values within other code
body: <p>I'd like people to be able to fill out a very simple, bare bones form with about 15-20 fields on it, and have those values populate into some pre-written HTML/CSS underneath, kind of like <a href="https://stackoverflow.com/questions/21200339/convert-html-code-into-plain-text-inside-a-div-or-textarea">this</a>  (but with values from the form inside the code and without checkboxes).  </p>
  
  <p>I've had no problem finding simple text input forms that work for me, but I can't find a way to place those values into CSS text. I don't want to execute the CSS, just to show it underneath as plain text.</p>
  
  <p>Ideally I'd like something like this in a form format:</p>
  
  <p>Name: [text input box]<br>
  DOB: [text input box]<br>
  Home State: [text input box]<br>
  Other data: [text input box]<br>
  Other date: [text input box]<br></p>
  
  <p>......</p>
  
  <p>and then when they click 'Submit', this populates below as pure text so they can post the full code themselves:</p>
  
  <pre><code>&lt;style type="text/css"&gt; ... bunch of css &lt;/style&gt;
  
  &lt;body&gt;
  &lt;div class=""&gt;Name:&lt;/div&gt; [inserted value from form]
  &lt;div class=""&gt;DOB:&lt;/div&gt; [inserted value from form]
  &lt;div class=""&gt;Home State:&lt;/div&gt; [inserted value from form]
  
  other stuff
  &lt;/body&gt;
  </code></pre>
  
  <p>I should note that I'm using this within an existing forum (jcink), so I can't use php or anything involving multiple pages.  The most basic script that can take text input and regurgitate it as needed within pure text is what I need, but can't seem to figure out.</p>