• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preselection not working for dropdown

#1
[eluser]zulubanslee[/eluser]
I have a dropdown and here is the code
Code:
echo form_dropdown('selectcategory', $category_array, $selected_category);


$selected_category is outputting the variable I want, the html looks like it should, but the page always loads with the first item selected.

Here is the html
http://imgur.com/mbiNR


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.