I have a form that is just a file input, this file input is meant to attach CSV files to, and then you submit it and it gives you a list of all the headers to chose from. Once you are done making selections, I want to submit another form with these choices along with the CSV file to process.
My problem is that I can't figure out how to reattach the CSV file to the 2nd form.
I thought about just using an array to just POST the data, but wouldn't it be better to just reattach the CSV file and handle it properly?
This is what I have, I tried to look this up but couldn't find anything.
<input type="file" name="fileToUpload" value="<?=$_FILES['fileToUpload']['tmp_name'];?>">
That is in the 2nd form, after the initial attachment. How can I attach the CSV file to the form to process?