# Quick Question: Saving form data into .xml with PHP

**URL:** <https://forum.kirupa.com/t/quick-question-saving-form-data-into-xml-with-php/270271>\
**Category:** programming\
**Created:** [September 8, 2008, 5:46am UTC](https://forum.kirupa.com/t/quick-question-saving-form-data-into-xml-with-php/270271 "2008-09-08T05:46:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benghee](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@benghee](https://forum.kirupa.com/u/benghee)\
**Post date:** [September 8, 2008, 5:46am UTC](https://forum.kirupa.com/t/quick-question-saving-form-data-into-xml-with-php/270271/1 "2008-09-08T05:46:24Z")

</div>

Hi all experts,

I want to make a multiple selection form that allow user to upload picture, enter picture name,caption and url. I know how to make the form and i’m working on the uploading part. Just i need to know its how to generate all the data into xml once the user click submit button. Thanks for everyone help. :beam: Here is the xml output i need to generate:

```auto

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
 
  <image>http://www.test.com/img/25.jpg</image>
 
  <caption>webcaption>
 
  <url>http://www.test.com</url>
 
</pic> 
<pic>
 
  <image>http://www.test.com/img/26.jpg</image>
 
  <caption>web_pagecaption>
 
  <url>http://www.test.com/wp</url>
 
</pic> 
 
<pic>
.....
</pic>
</images>

```
