A
A
Azat S.2015-10-10 13:26:18
JavaScript
Azat S., 2015-10-10 13:26:18

Creating local files after filling out a form, is it possible?

Hello!
Please tell me, is it possible to make Js so that after the user enters information through the form, a local file is created?

<form>
    <input type="text" placeholder="your name">
    <button type="submit">Get the file</button>
</form>

For example, a person fills out such a simple form. And on our server, a users/{input word}.txt file is created with the content "Hello, {input word}.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
LittleFatNinja, 2015-10-10
@LittleFatNinja

yes, you send a request with Ajax, you receive it on the server and create a file

E
Evgeny Petrov, 2015-10-10
@EvgenZZ

or localsorage

I
Ivanq, 2015-10-10
@Ivanq

Yes, you need to transfer data to the server through a form or ajax and create a file there with a script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question