Why, oh why isn't this simple thing working? I just want to understand why the variable $file1 is always empty. Other input types work just fine.

<?php

$file1 = $_POST['file1'];

echo "file1:", $file1;

?>			
			
			
<form ENCTYPE="multipart/form-data" action="add.php" method="POST">
  
  File<input type="file" name="file1"   />
  
  <input type="submit" value="Submit Information">
            </form>

Jill

Excellent, thank you very much!
Didn't realize it was an array.
J

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.