Writing into XML using AJAX.

02/12/2018 15:37 Dwarfche#1
Hey guys.

I am new into website developments. I've made the design of my login/register webpages. The problem is I cannot write into my XML file with account info using AJAX. Could anyone help me? I've been looking on the Internet for the last hour and didn't manage to find what I need.

Thanks in advance.
02/13/2018 10:27 type.#2
Provided you're using an environment including a server:
Simply pass on the text data to your server and execute the file writing code using some server side language like PHP or Python – whatever you prefer.
(As far as I know there is no JS-only solution..)

You explicitly wrote 'write' but if you only want to read the data and check if the user exists you could just parse your XMLfile and then check if the given formdata is equal to a set of userdate from your file.