• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the real value of a selected element

Hi all, I was trying to get a value from a select tag html but I couldn't get what i want; I got 0 in my final output:
Here is the codes:
<?php echo $year .' :'.form_dropdown($year, $years).br();?> (it's the view)

( the model)

I hope someone could help me to sort it out!

My kind regards!


@ranaivoo - your code is a little difficult to understand, you may need to post a more complete version of your code. Is the select box rendering correctly in the page, with values, name, etc?

if you use code tags it will help as well

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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