<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: entry point within code to trigger a xml generation script</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: entry point within code to trigger a xml generation script</description>
<language>en</language>
<pubDate>Thu, 18 Jun 2026 15:04:21 +0000</pubDate>

<item>
<title>RonSwanson on "entry point within code to trigger a xml generation script"</title>
<link>https://www.machform.com/forums/topic/entry-point-within-code-to-trigger-a-xml-generation-script#post-22485</link>
<pubDate>Fri, 09 Jan 2015 02:51:27 +0000</pubDate>
<dc:creator>RonSwanson</dc:creator>
<guid isPermaLink="false">22485@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Apologies for resurrecting an old thread, but I searched everywhere for a few days without much luck!&#60;/p&#62;
&#60;p&#62;I'm trying to do something similar - write an xml file and store it locally on the server.&#60;/p&#62;
&#60;p&#62;I can't work out how to access the fields contained in $entry_details...&#60;/p&#62;
&#60;p&#62;For example, I created a basic form with a single text field entry ('element_1' in the SQL database entry). I want to write the string value to my xml file, so in mf_send_notification(), after the call to mf_get_entry_details(), I am doing the following:&#60;/p&#62;
&#60;p&#62;$xml_filename = utf8_encode(&#34;XMLFile_{$entry_id}&#34;);&#60;br /&#62;
$file = fopen($xml_filename,&#34;w&#34;);&#60;br /&#62;
echo fwrite($file,&#34;TEST&#34;);&#60;br /&#62;
echo fwrite($file,&#34;{$entry_details['element_1']}&#34;);&#60;/p&#62;
&#60;p&#62;But the output file only contains &#34;TEST&#34;?&#60;/p&#62;
&#60;p&#62;Sorry, my php/sql skills are pretty limited... Any help would be much appreciated, thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "entry point within code to trigger a xml generation script"</title>
<link>https://www.machform.com/forums/topic/entry-point-within-code-to-trigger-a-xml-generation-script#post-18715</link>
<pubDate>Tue, 16 Jul 2013 08:24:47 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">18715@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It should be inside &#34;includes/helper-functions.php&#34; file. Around line 240, you'll find a function with the name &#34;mf_send_notification&#34;.&#60;br /&#62;
You can put your code into that function.&#60;/p&#62;
&#60;p&#62;All the data is already available within &#60;code&#62;$entry_details&#60;/code&#62; array. So you can simply loop through that to get the data.
&#60;/p&#62;</description>
</item>
<item>
<title>radixbv on "entry point within code to trigger a xml generation script"</title>
<link>https://www.machform.com/forums/topic/entry-point-within-code-to-trigger-a-xml-generation-script#post-18711</link>
<pubDate>Mon, 15 Jul 2013 21:22:38 +0000</pubDate>
<dc:creator>radixbv</dc:creator>
<guid isPermaLink="false">18711@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Can you provide a pointer to the code where we could insert a xml generation script&#60;/p&#62;
&#60;p&#62;A customer of us uses a lot of forms.&#60;br /&#62;
In the past the made there own php script to process all the forms.&#60;br /&#62;
As forms getting more and more complicated, if recommended to have a look at machform.&#60;/p&#62;
&#60;p&#62;The only obstacle is that the now generate as email with a xml output of the form data as a attachment.&#60;br /&#62;
That can be processed by the application that they use.&#60;/p&#62;
&#60;p&#62;An mysql script that generate a xml file for a certain entry is easy.&#60;/p&#62;
&#60;p&#62;S i was thinking to add this to the code at a certain point: Just before the email is generated. Also a point where there is access tot the record fields.&#60;/p&#62;
&#60;p&#62;Can you give me a pointer.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
