i'm ripping my hair out.
basically i have a form,
<form method="post" action="index.php" enctype="multipart/form-data">
one of the inputs:
<input type=file name=filename>
then, in the form processing:
if (isset($HTTP_POST_VARS['submit']) && ($_FILES['filename']['tmp_name'])) {
(code to upload).
now this form works perfectly fine on another page of mine, but i must be overlooking something. i've tried var dumping $_files, it returns null. the isset-submit returns true for sure, i've put that by itself and it registers. but $_files-filename returns false, even thouhg i just submitted a damn file!!
help?
basically i have a form,
<form method="post" action="index.php" enctype="multipart/form-data">
one of the inputs:
<input type=file name=filename>
then, in the form processing:
if (isset($HTTP_POST_VARS['submit']) && ($_FILES['filename']['tmp_name'])) {
(code to upload).
now this form works perfectly fine on another page of mine, but i must be overlooking something. i've tried var dumping $_files, it returns null. the isset-submit returns true for sure, i've put that by itself and it registers. but $_files-filename returns false, even thouhg i just submitted a damn file!!
help?