Attempting to populate a <select> with an array
<pre><code>&lt;form name="vegForm" action="veg.aspx" &gt;
    &lt;select onchange='this.form.submit()'&gt;
          &lt;script type="text/javascript"&gt;
             for (i = 0; i &lt; veg.length; i++) {
                 document.write('&lt;option&gt;')
                veg[i]                   
                 document.write('&lt;/option&gt;')                    
            }
         &lt;/script&gt;            
     &lt;/select&gt;

 &lt;/form&gt;
</code></pre>

<p>As you can imagine im quite new and having problem witht the above :/
Any help much appreciated!</p>
