I am looking for a one-click solution that will call up a file open dialog and from that dialog, send the file name to the next page. I stole this code, but it requires 2 clicks to get to the next page:
<form enctype="multipart/form-data" action="ImportTOA.php" method="POST" accept="text/csv">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Upload Daily TOA Logs: <br /><input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
I don't need to upload the file, I just need to pass the file name that the user chooses.