CodeIgniter Forums

Full Version: How to make a large select form sticky
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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:

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

Does anybody know of a better way?