title: Selecting dynamic default value in <SELECT>
body: <p>I have a php script which updates user info. I have created an html form, which allows user to edit the values and enter new ones.
  Now when the form is loaded for the first time, it displays some default values taken from php variables. 
  The  works fine but the problem is with  tag. </p>
  
  <pre><code>&lt;input type = "text" name = "name" class = "text" value = "&lt;?php echo $user-&gt;name; ?&gt;" /&gt;
  </code></pre>
  
  <p>this works fine..</p>
  
  <pre><code>&lt;select name = "department" value = "&lt;?php echo $user-&gt;department; ?&gt;"&gt;
      &lt;option&gt;Information Technology&lt;/option&gt;
      &lt;option&gt;Computer Science&lt;/option&gt;
      &lt;option&gt;Electronics &amp; Communication&lt;/option&gt;
      &lt;option&gt;Mechanical Engineering&lt;/option&gt;
      &lt;option&gt;Civil Engineering&lt;/option&gt;
      &lt;option&gt;Electrical &amp; Electronics Engineering&lt;/option&gt;
      &lt;option&gt;M.Tech&lt;/option&gt;
      &lt;option&gt;MBA&lt;/option&gt;
      &lt;option&gt;MCA&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>how can I solve this issue?</p>