Adding in if statement for add form to make edit form usable
<p>I have one form that is used to add and edit something. On the form is a select tag. What I'm asking is where do I use an if statement in this to see if its the edit then to preselect a value preset for the form. </p>

<p>Example below is what is needed for general add form:</p>

<pre><code>&lt;select name="item_status" id="select1" class="nostyle" style="width:100%;" placeholder="Select Status"&gt;
    &lt;option&gt;&lt;/option&gt;
    &lt;?php foreach($something AS $item)
    {
    echo '&lt;option value="'.$item-&gt;item_id.'"&gt;'.$item-&gt;items_name.'&lt;/option&gt;';
    }
    ?&gt;
&lt;/select&gt;
</code></pre>
