CodeIgniter Forums
How to make a large select form sticky - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to make a large select form sticky (/thread-45730.html)



How to make a large select form sticky - El Forum - 10-03-2011

[eluser]Chris Blackwell[/eluser]
I have a large select for with many options in it, and I'd like to make it "sticky". I was hoping that CodeIgniter might have an easier way to do this then:

Code:
<?php if($_POST['value'] == something) { echo 'selected="selected"'; } ?>

Does anybody know of a better way?