Please disregard my posting just before this. After a night's sleep and looking at my code with fresh eyes, I noticed that I had an extra under bar character in my $HTTP_POST_FILES variable which was causing all the trouble.
The script is now working perfectly.
Thanks Marek, Mike, Jon and everyone for helping me with my code.
-- Dave Gutteridge dave@xxxxxxxxxxxxxxx
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php