title: Radiobutton value to mysql without submit
body: <p>I'm by no means a javascript programmer so it would be nice if somebody could help me out with this. If have multiple of these ratingsections like in the example down below that are on the same page. </p>
  
  <p>Now I need to send the value of the radiobutton that has been clicked to my database without a submit button and preferably without a refresh.</p>
  
  <pre><code>&lt;body&gt;
      &lt;section class="rating"&gt;
          &lt;input type="radio" class="radio twenty" name="progress" value="twenty" id="twenty" &lt;?php if($num === 1) { echo 'checked'; } ?&gt;&gt;
          &lt;label for="twenty" class="label"&gt;1&lt;/label&gt;
  
          &lt;input type="radio" class="radio fourty" name="progress" value="fourty" id="fourty" &lt;?php if($num === 2) { echo 'checked'; } ?&gt;&gt;
          &lt;label for="fourty" class="label"&gt;2&lt;/label&gt;
  
          &lt;input type="radio" class="radio sixty" name="progress" value="sixty" id="sixty" &lt;?php if($num === 3) { echo 'checked'; } ?&gt;&gt;
          &lt;label for="sixty" class="label"&gt;3&lt;/label&gt;
  
          &lt;input type="radio" class="radio eighty" name="progress" value="eighty" id="eighty"&lt;?php if($num === 4) { echo 'checked'; } ?&gt;&gt;
          &lt;label for="eighty" class="label"&gt;4&lt;/label&gt;
  
          &lt;input type="radio" class="radio onehundred" name="progress" value="onehundred" id="onehundred" &lt;?php if($num === 5) { echo 'checked'; } ?&gt;&gt;
          &lt;label for="onehundred" class="label"&gt;5&lt;/label&gt;
  
          &lt;div class="progress"&gt;
              &lt;div class="progress-bar"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I've already set up the retrieval of checked radiobutton so that it corresponds with a rating of 1 to 5, so I'm currently using testdata to show a 1 to 5 rating.</p>
  
  <p>I don't necessarily need all the details, an overview of steps that need to be done would already be really helful.</p>