I am wanting to create and save, to the server, an xml file. I understand I should use javascript but am not sure exactly how to code it.
Scenario: I have a php page with variables, $firstname and $lastname for example. So in the php: $firstname = "John"; $lastname ="Doe";
I want to have a javascript that when fired will create and save an xml file.
I found the below post and it got me headed in the right direction.
Can anyone help me. I greatly appreciate some direction.
Additionally is it possible to have it outputjust like :
<?xml version="1.0" encoding="UTF-8"?>
<form1>
<fname>John</fname>
<lname>Doe</lname>
</form1>