Welcome Guest, Not a member yet? Register   Sign In
Display form results on same page as form (allowing to quickly edit)
#3

[eluser]mfroseth[/eluser]
Where does set_value come into play? I haven't seen this in the documentation yet (maybe not there yet). Would you be able to give a simple code example? This is what I have for the first drop down:

Code:
<?php
if($this->session->userdata('plan_type') == "graded")
{
  $options = array('graded' => 'Final Expense Graded Death Benefit',  'level' => 'Final Expense Level Death Benefit');  
} else if($this->session->userdata('plan_type') == "level")
{
  $options = array('level' => 'Final Expense Level Death Benefit','graded' => 'Final Expense Graded Death Benefit', );  
} else
{
  $options = array('default' =>'Select A Plan','graded' => 'Final Expense Graded Death Benefit', 'level' => 'Final Expense Level Death Benefit');
}
?>
    <?php echo form_dropdown('plan_type', $options, 'required','id="plan_type"'); ?>


Messages In This Thread
Display form results on same page as form (allowing to quickly edit) - by El Forum - 06-04-2012, 12:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB