Welcome Guest, Not a member yet? Register   Sign In
Repop on dynamic form select not working
#1

[eluser]RJ[/eluser]
Hello,

Using the code below to generate select drop down, trying to get the form to hold values if validation doesn't complete, can not get it to work, any thoughts?

Code:
<select name="fday">
            &lt;?php for($d=1;$d <= 31; $d++): ?&gt;
                <option value="&lt;?php echo $d; ?&gt;" &lt;?php echo set_select('fday', "$d"); ?&gt;>&lt;?php echo $d; ?&gt;</option>
            &lt;?php endfor; ?&gt;
        </select>
#2

[eluser]flaky[/eluser]
If I'm not wrong you need an option with empty value.




Theme © iAndrew 2016 - Forum software by © MyBB