How do I get input info in html?
TristanMisja (8)

I know how to use the <input> tag, but how do I get the output from it? Can you please create a example repl to explain? FYI I'm using <input type="file" id="fileInput" multiple onchange="showname()"/>

You are viewing a single comment. View All
vedprad1 (725)

You have to create a server to process the input. I would reccomend either learning Node.js or PHP to start learning how servers process this input. is a good resource for this.

Or, if you want to cheat this system. you can just use document.getElementById('id').value and process it in Vanilla JavaScript, but I do not think that will work for files.

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!