CodeIgniter Forums

Full Version: How to get the real value of a selected element
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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!


El Forum

@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