title: select dropdown value based on session variable
body: <p>i have a php form which submits data to another php for validation. if any fields are left blank the validator php sends a message back to original php form along with all the pre filled variables using session variables so that user doesn't have to fill them again.</p>
  
  <p>i can use these session variables to fill in text boxes again like this</p>
  
  <pre><code>value="&lt;?php echo $_SESSION['fname'] ?&gt;"
  </code></pre>
  
  <p>but how to go about populating drop downs, radio buttons and check boxes?</p>
  
  <p>thanks</p>