0

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

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Aldebaran
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.