<?php // return text var_dump for the html request echo "VAR DUMP:<p />"; var_dump($_POST); foreach($_FILES as $file) { $n = $file['name']; $s = $file['size']; if (!$n) continue; echo "File: $n ($s bytes)"; }