title: Add value to form's radio button and select[input type] using PHP
body: <p>Okay i have a selection box(drop down menu) and a set of radio buttons.</p>
  
  <p>Select Your Class:<br></p>
  
  <pre><code>&lt;form action="" method="post"&gt;
  &lt;select name="class"&gt;
  &lt;option value="a"&gt;A&lt;/option&gt;
  &lt;option value="b"&gt;B&lt;/option&gt;
  &lt;/select&gt;
  &lt;br&gt;&lt;br&gt;
  
  Red or blue:&lt;br&gt;
  &lt;input type="radio" name="red" value="red"&gt;Red
  &lt;input type="radio" name="blue" value="blue"&gt;Blue
  &lt;/form&gt;
  </code></pre>
  
  <p>I have connected my PHP script to database and retrieved the data from a table and stored them in variables to be echo out.
  ROW is Mysql fetch array .</p>
  
  <pre><code>$class = $row['class']
  $color = $row['color']
  </code></pre>
  
  <p>How can i display it out in the radio button and selection box (normally for text box i set the value to 
  <code>&lt;? php echo $foo ?&gt;</code></p>
  
  <p>Can someone help me?</p>