• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dropdown with CI

#4
[eluser]hvalente13[/eluser]
It's all about this line here:

Code:
<?php echo form_dropdown(array('name'=>$scalecontent['name'],'id'=>$scalecontent['id']),$dd_data,$name); ?>

You have to specify $scalecontent['name'], because you have instantiated the array in your controller. That shouldn't give you Array, but the value for the 'name' key of your array scalecontent.

Check it out... I'll try to run it if there's any bug, but at first glance I don't think so


Messages In This Thread
dropdown with CI - by El Forum - 10-13-2008, 07:23 AM
dropdown with CI - by El Forum - 10-13-2008, 08:48 AM
dropdown with CI - by El Forum - 10-14-2008, 04:13 AM
dropdown with CI - by El Forum - 10-14-2008, 05:32 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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