Welcome Guest, Not a member yet? Register   Sign In
combining form_dropdown() und set_select()
#8

[eluser]Future Webs[/eluser]
Heres my example that I got working for a dropmenu

Code:
<?php
$options = array(
    ''              => 'Select Experience',
    'None'          => 'None',
    'Amature'       => 'Amature',
    'Experience'    => 'Experienced',
    'Professinal'   => 'Professional'
    );
echo form_dropdown('experience', $options, set_value('experience', (isset($my_data->experience)) ? $my_data->experience : '')) ;
echo form_error('experience') ;
?>

The thing that was causing a problem though and making me think this did not work was that if I did not have a validation rule set up for this field then it would not remember the choice if a mistake was made on the form etc

Is this how it should work ?

I would have thought that I would not have needed to set a blank validation rule just to get it to remember the selection. I thought it used the POST values


Messages In This Thread
combining form_dropdown() und set_select() - by El Forum - 11-21-2008, 05:03 AM
combining form_dropdown() und set_select() - by El Forum - 11-21-2008, 09:21 AM
combining form_dropdown() und set_select() - by El Forum - 11-22-2008, 09:14 AM
combining form_dropdown() und set_select() - by El Forum - 11-23-2008, 08:12 PM
combining form_dropdown() und set_select() - by El Forum - 11-30-2008, 06:51 AM
combining form_dropdown() und set_select() - by El Forum - 11-30-2008, 06:55 AM
combining form_dropdown() und set_select() - by El Forum - 11-30-2008, 11:22 AM
combining form_dropdown() und set_select() - by El Forum - 12-04-2008, 10:01 AM
combining form_dropdown() und set_select() - by El Forum - 12-06-2008, 11:59 AM
combining form_dropdown() und set_select() - by El Forum - 12-08-2008, 09:00 AM
combining form_dropdown() und set_select() - by El Forum - 12-10-2008, 03:43 AM
combining form_dropdown() und set_select() - by El Forum - 12-10-2008, 03:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB