title: How to include php file if radio is checked
body: <p>I need to include a speficif php file if radio is checked</p>
  
  <p>this is my radio :</p>
  
  <pre class="lang-php prettyprint-override"><code>echo '&lt;input type="radio" name="vue" id="mois" value="mois" onclick="vues()"'; if($mois) {echo "checked"; }
  
  echo '&gt;
              &lt;label for="mois"&gt;Mois&lt;/label&gt;
        &lt;input type="radio" name="vue" id="semaine" value="semaine" onclick="vues()"'; if($semaine) {echo "checked"; }
  echo  '&gt;
              &lt;label for="semaine"&gt;Semaine&lt;/label&gt;
        &lt;input type="radio" name="vue" id="jour" value="jour" onclick="vues()"'; if($jour) {echo "checked"; }
  echo  '&gt;
              &lt;label for="jour"&gt;Jour&lt;/label&gt;';
  </code></pre>
  
  <p>I try to do this : </p>
  
  <pre><code>function vues(){
              if($('#mois').is(':checked')){
                    document.getElementById("test").innerHTML = "&lt;?php include '../public/mois.php'; ?&gt;";
              } else if ($('#semaine').is(':checked')){
                    document.getElementById("test").innerHTML = "&lt;?php include '../public/semaine.php'; ?&gt;";
              } else if ($('#jour').is(':checked')){
                    document.getElementById("test").innerHTML = "&lt;?php include '../public/jour.php'; ?&gt;";}
  }
  </code></pre>
  
  <p>But nothing happend..</p>