Welcome Guest, Not a member yet? Register   Sign In
strange behaviour of form_dropdown
#1

[eluser]Unknown[/eluser]
Hi all,
I am experiencing a strange issue with form_dropdown.

// in the controller
$data["option"]=array(
""=>"Choose your option",
"0"=>"0%",
"10"=>"10%",
"20"=>"20%"
);
$selected=0;

//in view
form_dropdown("percent", $option, $selected);

When I put 0 as the selected item, it always shows "Choose your option", when I choose 10 or 20, it is showing correctly. Only when I choose 0 this issue appears...

Anyone can help?
#2

[eluser]Unknown[/eluser]
I found it myself, please ignore this...
It was completely my fault, not code igniter issue...
:-)




Theme © iAndrew 2016 - Forum software by © MyBB