# Php form to write XML

**URL:** <https://forum.kirupa.com/t/php-form-to-write-xml/307609>\
**Category:** Uncategorized\
**Created:** [April 6, 2010, 7:22pm UTC](https://forum.kirupa.com/t/php-form-to-write-xml/307609 "2010-04-06T19:22:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andylou17](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@andylou17](https://forum.kirupa.com/u/andylou17)\
**Post date:** [April 6, 2010, 7:22pm UTC](https://forum.kirupa.com/t/php-form-to-write-xml/307609/1 "2010-04-06T19:22:57Z")

</div>

I need help on creating a form to fill up the below XML format. I want to use XML, because the data is only store temporary and will be deleted.

\<base\>  
\<featured\>  
\<artist\>ABC\</artist\>  
\<artisturl\>[http://www.artisturl.com](http://www.artisturl.com)\</artisturl\>  
\<image\>http://\<image\>  
\<genre\>Urban\</genre\>  
\<profile\>fjlskafjkladsfjalf\</profile\>  
\</featured\>  
\<featured\>  
\<artist\>ABC\</artist\>  
\<artisturl\>[http://www.artisturl.com](http://www.artisturl.com)\</artisturl\>  
\<image\>http://\<image\>  
\<genre\>Urban\</genre\>  
\<profile\>fjlskafjkladsfjalf\</profile\>  
\</featured\>  
\<topchart\>  
\<chart\>  
\<artist\>NFD\</artist\>  
\<song\>rewrwer\</song\>  
\<image\>\</image\>  
\<link\>http://\</link\>  
\<chart\>  
\<chart\>  
\<artist\>NFD\</artist\>  
\<song\>rewrwer\</song\>  
\<image\>\</image\>  
\<link\>http://\</link\>  
\<chart\>  
\<chart\>  
\<artist\>NFD\</artist\>  
\<song\>rewrwer\</song\>  
\<image\>\</image\>  
\<link\>http://\</link\>  
\<chart\>  
\</topchart\>  
\</base\>

I want to help also to display it on html. the reason I make this form so that user can input

Thank you
