I have a problem with IIS5 and php 4 on my W2K web development testing machine.
Form variables from input type="file" disappear without ever being available on the php action page. Other form variable types are fine.
php.ini register_globals is ON. file-upload is ON. Size is default. I have also tested with register_globals OFF using _POST array.
I beleive this is a problem with how I have configured IIS on my Windows 2000/PHP development machine, but simply can't find anything about this problem in IIS forums, so I'm trying here. I would deeply appreciate some help.
Here is my code, stripped to a minimum:
//THE FORM
<form action="test.php" method="post" enctype="multipart/form-data" name="form1">
<input name="file-1" type="file">
<input name="sometext" type="text">
<input type="submit" name="Submit" value="Submit">
</form>
//THE TEST.PHP CODE
<?php
echo $file1;
echo $sometext;
?>
//THE INPUT VALUES
'c:\randomtextfile.txt' (SMALL text file [<1Kb] selected as input for file1 using browse button)
'here's some text' typed in manually to text box "sometext" in form
//THE RESULT IN IE5.5
Notice: Undefined variable: file1 in c:\test.php on line 8
here's some text
Also, could it be my directory permissions on Windows2000?
Thanks for any help.