PHP: Displaying a value dependent on input
<p>In my view I have the following select menu that states what type of form types are available:</p>

<pre><code>&lt;label for="add_fields_type"&gt;Type: &lt;/label&gt;
&lt;select name="add_fields_type" id="add_fields_type"&gt;
    &lt;option value="input"&gt;Input&lt;/option&gt;
    &lt;option value="textarea"&gt;Text Area&lt;/option&gt;
    &lt;option value="radiobutton"&gt;Radio Button&lt;/option&gt;
    &lt;option value="checkbox"&gt;Check Box&lt;/option&gt;
&lt;/select&gt; 
</code></pre>

<p>In my controller I currently have the following but I am unsure how to make is so that if <code>$_REQUEST['add_fields_type']</code> is <code>=</code> to lets say <code>radiobutton</code> then it will display that respective code.</p>

<p><strong>Controller:</strong></p>

<pre><code>if (isset($_REQUEST['add_fields_type'])) 
        {

            echo $_REQUEST['add_fields_type'];
        }
</code></pre>
