Get radio button data from mysql in input form
<p>I've already searched and I don't understand why this isn't working.</p>

<pre><code>    &lt;input type="radio" name="soort" value="in"  echo ('.$_GET['soort'].'=="in")?"checked":""&gt;In-Company&lt;br /&gt;
    &lt;input type="radio" name="soort" value="open" echo ('.$_GET['soort'] . '"=="open")?"checked":"&gt;Open inschrijving&lt;br /&gt;
</code></pre>

<p>This isn't working either:</p>

<pre><code>    &lt;input type="radio" name="soort" value="in"  echo ($soort=="in")?"checked":""&gt;In-Company&lt;br /&gt;
    &lt;input type="radio" name="soort" value="open" echo ($soort=="open")?"checked":"&gt;Open inschrijving&lt;br /&gt;
</code></pre>

<p>Clearly I'm doing something wrong or I'm missing something. </p>

<p>If anyone could help me out here or put me in the right direction. Thank you!!!!</p>

<p>This is the entire form. </p>

<pre><code> print '&lt;form action="edit_dienst.php" method="post"&gt;
    &lt;p&gt;&lt;strong&gt;Titel&lt;/strong&gt; &lt;textarea name="navigatie" columns="20" rows="5"&gt;' . $row['navigatie'] . '&lt;/textarea&gt;&lt;/p&gt;         
    &lt;p&gt;&lt;strong&gt;Tekst&lt;/strong&gt; &lt;textarea name="tekst" columns="20" rows="5"&gt;' . $row['tekst'] . '&lt;/textarea&gt;&lt;/p&gt;
    &lt;input type="radio" name="soort" value="in"  echo ($soort=="in")?"checked":""&gt;In-Company&lt;br /&gt;
    &lt;input type="radio" name="soort" value="open" echo ($soort=="open")?"checked":"&gt;Open inschrijving&lt;br /&gt;
                &lt;input type="hidden" name="id" value="' . $_GET['id'] . '" /&gt;
    &lt;input type="submit" name="submit" value="Pas aan!" /&gt;
    &lt;/form&gt;&lt;p&gt;&lt;/p&gt;';
</code></pre>
