# Basic Writing to XML via php

**URL:** <https://forum.kirupa.com/t/basic-writing-to-xml-via-php/237145>\
**Category:** Uncategorized\
**Created:** [August 27, 2007, 5:40pm UTC](https://forum.kirupa.com/t/basic-writing-to-xml-via-php/237145 "2007-08-27T17:40:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodman650](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Post date:** [August 27, 2007, 5:40pm UTC](https://forum.kirupa.com/t/basic-writing-to-xml-via-php/237145/1 "2007-08-27T17:40:56Z")

</div>

Hey all,  
I’m trying to write a little flash movie that displays xml data. I’m also hoping to have a form with only 2 fields that a user can add new data to the xml file that is then displayed in the swf file. I know I probably need a php script in the middle but am having trouble getting started.

This could be completely wrong but I’m making an attempt…

In my flash file, I submit the values of the text fields via this code on a submit button:

```auto
 
on (release) {
 form.loadVariables("myform.php", "POST");
}

```

Here is where I get stumped. I have no idea how to break those values apart in php and write them to an xml file. Can anyone lend some expertice? thank you in advance
