Jump to content

Search the Community

Showing results for tags 'form xml'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi, i need some help to create xml files from my upload form. For the form i used Soma's excellent example: https://gist.github.com/somatonic/5233338 i modified it. I only have an email field and the upload. I don't erase the files in my tmp folder. What i want is to create xml files with the same name. The same name that my files have. Example: photo1.png photo2.png photo1.xml photo2.xml .... i tried this code but i get stuck where i have to submit the entry from my email field. // remove extension from filename $withoutExt = preg_replace('/\\.[^.\\s]{3,4}$/', '', $files); // create xml for switch $doc = new DOMDocument('1.0'); $doc->formatOutput = true; $root = $doc->createElement('phpemail'); $root = $doc->appendChild($root); $email = $doc->createElement('email'); $email = $root->appendChild($email); $text = $doc->createTextNode($form_fields); $text = $email->appendChild($text); $doc->save($upload_path . $withoutExt . ".xml");
×
×
  • Create New...