Welcome Guest, Not a member yet? Register   Sign In
Help Needed with Dropdown Selection
#1

[eluser]TerryT[/eluser]
Finally wasted enough hours beating this around. Any help would be appreciated. I have an input form dropdown. I want the user to select a project off the dropdown before the data gets posted to the database so the items can be posted to the right project.

View Code:
Code:
<div class='dropdown'>
  <label>Projects</label>
  &lt;?php echo form_dropdown('proj_select', $proj_menu); ?&gt;
</div>

Controller Code:
Code:
$selection = 0;
$selection = $this->input->post('proj_select');
if($selection != 0)  //Make sure a project is selected.

It doesn't appear that a project ever gets selected. On a side note, how would you print out the $selection to see what is going on? Tried print_r in the controller and form and nothing. Thanks.

Terry


Messages In This Thread
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 06:10 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 06:21 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 06:42 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 06:47 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 07:12 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 07:26 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 07:37 AM
Help Needed with Dropdown Selection - by El Forum - 10-22-2010, 07:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB