I have a problem with IIS5 and php 4 on my 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 believe this is probably 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 $file-1;
echo $sometext;
?>
//THE INPUT VALUES
'c:\randomtextfile.txt' //(SMALL text file [<5Kb] selected as input for file-1 using browse button)
'here's some text' //typed in manually to text box "sometext" in form
//THE RESULT IN IE5.5
Notice: Undefined variable: file-1 in c:\test.php on line 8
here's some text
So, why aren't the file type inputs coming thru? Thanks for any help offered, it's probably a simple config problem I can't work out.