Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] form_dropdown posts key not the value
#1

[eluser]predat0r[/eluser]
Hi,

Can you help me why the form_dropdown sends the key of an array, and not the value? For example I have a for loop generated array years isnside (0 => 1900, 1 => 1901 ..) and after POST I become the keys..
Sorry if it's repeated question but I couldn't find an exact post to solve my question.
Thanks,

-- EDIT:
I figured out it's not CI related problem .. I have to fill the array keys with years also..




Theme © iAndrew 2016 - Forum software by © MyBB