Hi there,
Im running IIS 6 with PHP5. The code below works fine with apache but not with IIS and i wondered if anyone could help me out.
<?php
if($testthis == 1){
if ($file_upload=="")
{
die("No File");
}
if ($file_upload_name != "")
{
echo $file_upload_name;
echo"<BR>";
die("Finished Testing");
}
die("Error!");
}
?> <form action="uploadimage.php?testthis=1" method="post" enctype="multipart/form-data" name="what_eva_ya_Want">
<input type="hidden" name="MAX_FILE_SIZE" value="500000">
<input type="hidden" name="image_suitable" value="0">
<input type="file" name="file_upload" size="50">
<br>
<input type="submit" value="Upload File">
</form>
All that happens when i run this code on an IIS server I get the error No File. Hope you can help
Thankyou
Jim