# Create local.xml file with customible fields using PHP?

**URL:** <https://forum.kirupa.com/t/create-local-xml-file-with-customible-fields-using-php/311511>\
**Category:** programming\
**Created:** [July 8, 2010, 6:25pm UTC](https://forum.kirupa.com/t/create-local-xml-file-with-customible-fields-using-php/311511 "2010-07-08T18:25:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skullmonkey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/skullmonkey/32/7362_2.png) [@skullmonkey](https://forum.kirupa.com/u/skullmonkey)\
**Post date:** [July 8, 2010, 6:25pm UTC](https://forum.kirupa.com/t/create-local-xml-file-with-customible-fields-using-php/311511/1 "2010-07-08T18:25:18Z")

</div>

I just went through [http://www.kirupa.com/web/php\_contact\_form.htm](http://www.kirupa.com/web/php_contact_form.htm) and its basicly what I need with a litle modification. Can someone tell me what to change that I will receive local.xml or local.txt file in some folder on my server. Basicly I need php that will create

local.xml

```auto
<?xml version="1.0" encoding="ISO-8859-1"?>
    <kursna>
        <sometext>[text that I put in field 1</sometext>
        <sometext2>[text that I put in field 2</sometext2>
        ...
    </kursna>

```

Thanks,  
S@
