thorowing error on else if
<p>I have given 2 option(upload icon/select icon) in form, but when i am checking it with php its throwing error...</p>

<p><strong>html</strong></p>

<pre><code>&lt;label class="tagslabel"&gt;Upload Icon&lt;/label&gt;
&lt;input name="uploadicon" type="file" /&gt;
&lt;span&gt;or&lt;/span&gt;
&lt;ul class="icons clearfix"&gt;
    &lt;li&gt;
        &lt;input type="radio" value="123456" name="selecticon"/&gt;
        &lt;label for="selecticon"&gt;
            &lt;img src="pics/123456.jpg" alt="123456" width="34" height="34" /&gt;
        &lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
        &lt;input type="radio" value="654321" name="selecticon" /&gt;
        &lt;label for="selecticon"&gt;
            &lt;img src="pics/654321.jpg" alt="654321" width="34" height="34" /&gt;
        &lt;/label&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p><strong>php</strong></p>

<pre><code>if (!empty($_FILES['uploadicon']['name'])) {
     //do image processing and validation
}
else {
    if($_POST['selecticon'] == '') $errors['selecticon'] = 'Please Select An Icon or upload Icon!';
}
</code></pre>

<p>but its throwing following error, if i upload image instead of selecting one.</p>

<pre><code>Notice: Undefined index: selecticon
</code></pre>
