title: Putting data into database with random form data
body: <p>Well it's hard to explain but I've made an option menu</p>
  
  <pre><code>    &lt;body&gt;
      &lt;div id="wrapper"&gt;
          &lt;p&gt;&lt;h2 id="title"&gt;Add stuff here&lt;/h2&gt;&lt;/p&gt;
          &lt;table style="width: 100%; text-align: center;" id="myTable"&gt;
          &lt;/table&gt;
          &lt;br&gt;
          &lt;input type="button" onclick="test()" value="Add Option"&gt;
          &lt;script&gt;
              var totalcells = 0
              function test(){
                  var table = document.getElementById("myTable");
                  var row = table.insertRow(totalcells);
                  var cell1 = row.insertCell(0);
                  var cell2 = row.insertCell(1);
                  totalcells++
                  cell1.innerHTML = "&lt;input type='text' value='Option Title' onclick='select()'&gt;";
                  cell2.innerHTML = "&lt;textarea onclick='select()'&gt;Text&lt;/textarea&gt;";
                  }
      &lt;/script&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Each time a user clicks on the "Add option" button a new table row appears. What I want is that when they click on submit all the above data will be stored in my database. I know how to store it when you don't have the add option but this is more complicated. </p>