[eluser]Funky Fresh[/eluser]
Hey All,
Im having a few problems with some code im working on.
Basically, i have got a dropdown which is populated by values from the database, in my view i am displaying it like so.
Code:
<?php echo form_dropdown('roles', $roles, set_value('roles', $roles)); ?>
Below that i have 2 textboxes, just standard <input type="text" /> thingos.
What i want to do, is populate the textboxes with values from the database based on what the user clicks on the dropdown box.
I have had a look around the forums, and seem some examples of populating another dropdown, but not textboxes, ive tried to make my own solution, but i cant seem to get it going.
Could someone give me a hand, maybe some yummy source code would help.
Thanks guys