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

[eluser]coffey[/eluser]
I don't think it is true that you must set an accompanying rule. I do this without and it works in an add/edit scenario
Code:
$selectname = "myselect";
        $options = array(
                    ""=>'Choose',
                    "option1"=>"option1",
                    "option2"=>"option2",
                    "option3"=>"option3"
                    );
        echo form_dropdown( $selectname, $options, set_value( $selectname, $$selectname ) );

Quick, easy and very helpful for large forms


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