Looking for some help on how to pull out a numerical value from a drop down box back into an if statement in a controller:
Dropdown box:
<div class="form-group"><select class="form-control" name="Role"><option value="">Select your accout type</option><option value="0">optionOne</option><option value="1">otionTwo</option></select></div>
if (optionOne is chosen) { set a database field to 2 } if(optionTwo is chosen) { set a database field to 3 }
I'm looking at inserting two different integers into a database depending on which option is selected from the dropdown box.