Clear form on reset / Unset or clear $_FILES variable
Posted: Sun Oct 17, 2010 10:32 pm
Hello everyone,
It's my first post. I've been teaching myself php via books and the net for a couple months now. I've got a form that allows a user to upload a csv file. It then reloads the page and populates another form with the data from the csv file. I want to be able to clear the 2nd form when the user clicks the reset button, however that just re-populates the form with the data from the csv file.
My thought is to unset or somehow clear the $_FILES variable (right now I test if it exists to populate the form). Does anyone know how to do that or if it is even possible?
Thank you for your time.
It's my first post. I've been teaching myself php via books and the net for a couple months now. I've got a form that allows a user to upload a csv file. It then reloads the page and populates another form with the data from the csv file. I want to be able to clear the 2nd form when the user clicks the reset button, however that just re-populates the form with the data from the csv file.
My thought is to unset or somehow clear the $_FILES variable (right now I test if it exists to populate the form). Does anyone know how to do that or if it is even possible?
Thank you for your time.