In my view I have the following select menu that states what type of form types are available:
<label for="add_fields_type">Type: </label>
<select name="add_fields_type" id="add_fields_type">
<option value="input">Input</option>
<option value="textarea">Text Area</option>
<option value="radiobutton">Radio Button</option>
<option value="checkbox">Check Box</option>
</select>
In my controller I currently have the following but I am unsure how to make is so that if $_REQUEST['add_fields_type'] is = to lets say radiobutton then it will display that respective code.
Controller:
if (isset($_REQUEST['add_fields_type']))
{
echo $_REQUEST['add_fields_type'];
}