i get error when i try to upload a file?
Posted
by
getaway
on Stack Overflow
See other posts from Stack Overflow
or by getaway
Published on 2011-01-03T14:31:37Z
Indexed on
2011/01/03
14:53 UTC
Read the original article
Hit count: 165
I keep getting an error:Notice: Undefined index: on line 35
line 35:
$handle = new Upload($_FILES['my_field']);
this is my input field
<input type="file" size="32" name="my_field" value="" />
I do not understand this error, thanks!!!
EDIT:
<form name="upload" id="upload" enctype="multipart/form-data" method="post" action="actions/upload.php" />
<p><input type="file" size="32" name="my_field" value="" /></p>
<p class="button"><input type="hidden" name="action" value="image" />
<br>
<input style="margin-left:224px;" type="submit" name="submit" value="upload" />
© Stack Overflow or respective owner