[eluser]neversummer[/eluser]
I am having trouble getting the form helper to work and I cannot for the life of me figure out what I am doing wrong. I've read through the user guide and forums, but still no progress.
Originally I was trying to set the value of a dropdown using set_select, but could get that to work. So I thought I would try set_value on an input box as part of a troubleshooting exercise. I should add that I am autoloading the form helper, but also called it again in my controller function to make sure there wasn't something else going on.
In my view I have two input text controls:
Code:
<input type="text" name="zipcode" value="<?php echo set_value('zipcode'); ?>" />
<input type="text" name="zipcode2" value="<?php echo $row->zipcode; ?>" />
The set_value control does not populate a value (at all), while the second one does. What am I doing wrong here? Even more curious is the fact that I am using the form_open function to open this form and it's working without issue.
Thanks for your help.