hi everyone!
i was just wondering if anybody can help me with my problem. i'm been trying to figure it for about 5 days now, and i can't seem to find a solution. after all the searching i've done on the internet, i only found one person with the same problem, but no one replied to his question. so i decided to join this forum, and maybe someone can enlighten me with a solution.
basically what i'm trying to accomplish is a file upload. just a simple .txt extension file.
i'm using the example from the book that i bought: PHP and MySQL Web Development by Luke Welling and Laura Thosmson.
here's the sample code that i used:
//this is myUpload.htm
<form enctype="multipart/form-data" action="myUpload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="300000">
Send this file: <input name="theFile" type="file">
<input type="submit" value="Send File">
</form>
my problem is, whenever i press the submit button, "Send File", it doesn't seem to capture the input from the "theFile".
here is a snippet of one of my php checks that always intercepts the value passed to the input name.
//this is myUpload.php
if($theFile_size==0)
{
echo "Problem: uploaded file is zero length";
exit;
}
[/color]
that's the code where the script always stop at. i really don't understand it. it seems that no value is being passes to "myUpload.php".
to take away some confusion, the actual text file that i'm trying to upload is 3KB.
someone please help me!