<form action="upload.php" method="POST" enctype="multipart/form-data"> <input type="file" name="file"> <button type="submit" name="submit">Upload</button> </form>
info at phpclasses dot org