Need Help

#1
[eluser]phpfresher[/eluser]
I have form with method post and enctype multipart/form-data and the element type file having name user file ok here is the code

<tr>
<td>User Image </td>
<td> &lt;input type="image" name="userfile" /&gt;&lt;/td>
</tr>
and when i execute the code in the controller output is undefined index userfile here is the code in the controller
die($_FILES['userfile']['name']);

Can you help me ???

#2
[eluser]eoinmcg[/eluser]
try

Code:
&lt;input type="file" name="userfile" /&gt;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.