title: CodeIgniter file uploading issue with anchor tag
body: <p>A peice of code is posted below that I am using for uploading file in <code>CodeIgniter</code>. This works fine but I want to upload the file by clicking anchor tag <code>&lt;a&gt;</code> that has an image on it. Please tell how can I do that?</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;?php echo form_open_multipart('transferdata/uploadfile'); ?&gt;
  &lt;?php echo "&lt;input type='file' name='userfile' size='20' /&gt;"; ?&gt;
  &lt;?php echo "&lt;input type = 'submit' value = 'upload' /&gt;"; ?&gt;
  &lt;?php echo "&lt;/form&gt;"?&gt;
  </code></pre>