Saving variables to a text/html file in JavaScript serverside -


i'm making form on javascript , want save of users entered variables either .txt file or new webpage variables pre entered in inputs. understand javascript cant manipulate users machine can manipulate servers files(create new files) if can how 1 save variables onto new file in way imported website? input appreciated :) aaron~

javascript running in browser can make http requests server (generally using xmlhttprequest object).

it can't write arbitrary files (if could, client could, , deface website)

you need form of server side process running on server can interpret http request meaning "write file" (although, in cases, write database , generate file on request data there).

you write server side process in javascript if have suitable server side environment (such node.js).


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -