# Write XML via PHP form?

**URL:** <https://forum.kirupa.com/t/write-xml-via-php-form/216104>\
**Category:** programming\
**Created:** [February 13, 2007, 8:26pm UTC](https://forum.kirupa.com/t/write-xml-via-php-form/216104 "2007-02-13T20:26:51Z")\
**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:** [February 13, 2007, 8:26pm UTC](https://forum.kirupa.com/t/write-xml-via-php-form/216104/1 "2007-02-13T20:26:51Z")

</div>

Hey all,  
Kind of a beginner here and I just wondered…  
If I wanted to create an xml doc with one variable that I wanted to toggle, could I create a php page that could pull this value and then using toggle buttons, change the value in the xml doc. For example…

I have a php page with two radio buttons and a submit button. The value of the xml doc is reflected by the appropriate filled radio button. When a user clicks the other button and hits “submit”, the value is changed in the xml doc and the pages refreshes to show the new radio filled instead of the old. I hope that makes sense… what I’m trying to do is really simple. I just don’t know if it’s possible or how you’d do it.

Thanks in advance for any help 🙂
