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

#1
[eluser]Unknown[/eluser]
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)

$data['year']='Year';
$data['years']=array('2007'=>'2007',
'2008'=>'2008',
'2009'=>'2009');
( the model)

I hope someone could help me to sort it out!

My kind regards!

Ranaivo


Messages In This Thread
How to get the real value of a selected element - by El Forum - 10-05-2012, 12:46 AM
How to get the real value of a selected element - by El Forum - 10-07-2012, 02:12 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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