Creating selectbox dynamically
<p>in my website i am using an elements array to define all my form elements in a config file.
it's working fine now what i need is 2 Selectboxes that will be generated dynamically.
first selectbox should contains month names from Jan-Dec and second selectbox should contain years from current year to +10.</p>

<p>Please suggest how may i configure this situtation efficently?</p>

<p>thanks in advance.</p>

<pre><code>$ELEMENTS["name"]  = array("label"=&gt;"Username", "type"=&gt;"text", "name"=&gt;"user_name", "width" =&gt; "50", "validationtype"=&gt;"text");
$ELEMENTS["email"] = array("label"=&gt;"E-Mail",  "type"=&gt;"text", "name"=&gt;"e_mail", "width" =&gt; "50", "validationtype"=&gt;"email");
$ELEMENTS["birthdate"] = array("label"=&gt;"Date of birth",  "type"=&gt;"text", "name"=&gt;"birth_date", "width" =&gt; "50", "validationtype"=&gt;"datel");
</code></pre>
