title: Parse error: syntax error, unexpected T_FOR
body: <p>I am trying to create a html form with a drop down in it. Below is my code:</p>
  
  <pre><code>$output[]='&lt;td&gt;&lt;select name="qty'.$name.'"&gt;'
   for($count=1;$count&lt;=$total;$count+=1) {
       '&lt;option value="'.$count.'"&gt;'.$count.'&lt;/option&gt;'
  }
  '&lt;/select&gt;
   &lt;/td&gt;';
  </code></pre>
  
  <p>Can anyone tell me what might be the issue? Also how can I set default selected value to 1?</p>