title: How do I make a radio button selected by reading the value from my database?
body: <p>I have a form with some radio buttons, a textfield and a textarea which I insert into my database. Now I have an option to edit the the whole thing. When I click on a button edit I get the form again and the values in the textfield and textarea are the same I inserted into the database. Now I have no idea how I get the radio button with the right value as the value in the database checked. </p>
  
  <p>This is my form:</p>
  
  <pre><code>&lt;&lt;&lt;EOT
              &lt;table&gt;
    &lt;form action="index.php?page=artikelen_bewerken_verwijderen&amp;id={$_GET['id']}" method="post"&gt; 
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="text" size="108%" name="title" value="{$titel}"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt; 
    &lt;tr&gt;&lt;th&gt;&lt;td&gt; &lt;textarea name="description"  rows="20" cols="80" &gt;{$nieuwsbericht}&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club"  value="borussia-dortmund"&gt;Borussia Dortmund &lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club"  value="ajax"&gt;Ajax&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club" value="ac-milan"&gt;AC Milan&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club"  value="fc-bayern"&gt;Bayern Munchen&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club"  value="feyenoord"&gt;Feyenoord&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club" value="juventus"&gt;Juventus&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club"  value="real-madrid"&gt;Real Madrid&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input type="radio" name="club"  value="fc-barcelona"&gt;Barcelona&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt;   
    &lt;tr&gt;&lt;th&gt;&lt;td&gt;&lt;input name="edit" type="submit" value="Edit"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/th&gt; 
    &lt;/form&gt; 
   &lt;/table&gt;
  EOT;
  </code></pre>
  
  <p>Does anyone know how to get the radio button checked like I want to?</p>