title: Keep radio button check after submit . PHP syntax error
body: <p>I have a PHP syntax error, but PHP doesn't tell me where it is ...
  Maybe you could help me</p>
  
  <p>I have a QCM and user need to clic on radio buttons to validate his choice.
  But after the form has been submit, radio button are unckecked ...</p>
  
  <pre><code>&lt;?php
      for ($i=1;$i&lt;11;$i++) {
          echo '&lt;input type="radio" name="radioq'.$i.'" value="'.$data_exercice['id'].'" '.if (isset($_POST['radioq'.$i]) &amp;&amp; $_POST['radioq'.$i] == $data_exercice['id']) { echo 'checked="checked"';}.'/&gt;';
      }
  ?&gt;
  </code></pre>
  
  <p>Thank you</p>