I want to make a form in which when I upload my text file it will appear in the textarea
box (the content of the txt csv file to be printed in the textarea
box). I have done a web search but didn't get any idea.
The new JS File API can help you.
If you dont need the file uploaded on your serveur, then take a look here . You'll just need to adapt it a little to make it fill the value of your input box (maybe you should use a textarea instead of a simple input here).
If you need upload:
If I was you, I would make two scripts. The first one handle upload and redirect to the second one, wich show a page (or the same form as the previous) with the text field updated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.