<?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: Dynamic Website url for webhook (send data to website), incl. solution</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Dynamic Website url for webhook (send data to website), incl. solution</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 22:33:40 +0000</pubDate>

<item>
<title>Tiron on "Dynamic Website url for webhook (send data to website), incl. solution"</title>
<link>https://www.machform.com/forums/topic/dynamic-website-url-for-webhook-send-data-to-website-incl-solution#post-21454</link>
<pubDate>Wed, 23 Jul 2014 16:34:39 +0000</pubDate>
<dc:creator>Tiron</dc:creator>
<guid isPermaLink="false">21454@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi again,&#60;/p&#62;
&#60;p&#62;i added further code, because get parameters i added to the url in a post request didnt appear and that was a problem.&#60;/p&#62;
&#60;p&#62;Example as above in my first post: &#60;a href=&#34;https://api.maileon.com/1.0/contacts/max.mustermann%40xqueue.com?permission=1&#34; rel=&#34;nofollow&#34;&#62;https://api.maileon.com/1.0/contacts/max.mustermann%40xqueue.com?permission=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;the permission=1 is missing in the request.&#60;/p&#62;
&#60;p&#62;So i changed the code around line 320 again to the following:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(trim($webhook_url_info[&#38;#39;query&#38;#39;]) != &#38;#39;&#38;#39;)
	$query = &#38;#39;?&#38;#39;.$webhook_url_info[&#38;#39;query&#38;#39;];
else
	$query = &#38;#39;&#38;#39;;

$path = $webhook_url_info[&#38;#39;path&#38;#39;].$query;

if($webhook_method == &#38;#39;post&#38;#39;){
	$webhook_client-&#38;gt;post($path, $webhook_data, $webhook_headers);
}elseif ($webhook_method == &#38;#39;get&#38;#39;) {
	$webhook_client-&#38;gt;get($path, $webhook_data, $webhook_headers);
}elseif ($webhook_method == &#38;#39;put&#38;#39;) {
	echo &#38;quot;running PUT&#38;quot;;
	$webhook_client-&#38;gt;put($path, $webhook_data, $webhook_headers);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Tiron on "Dynamic Website url for webhook (send data to website), incl. solution"</title>
<link>https://www.machform.com/forums/topic/dynamic-website-url-for-webhook-send-data-to-website-incl-solution#post-21449</link>
<pubDate>Tue, 22 Jul 2014 23:23:38 +0000</pubDate>
<dc:creator>Tiron</dc:creator>
<guid isPermaLink="false">21449@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;we send data to a mailing-app and they need to have the emailadress in the website-url, like this:&#60;br /&#62;
&#60;a href=&#34;https://api.maileon.com/1.0/contacts/max.mustermann%40xqueue.com?permission=1&#34; rel=&#34;nofollow&#34;&#62;https://api.maileon.com/1.0/contacts/max.mustermann%40xqueue.com?permission=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It is currently not possible to do this like this:&#60;br /&#62;
&#60;a href=&#34;https://api.maileon.com/1.0/contacts/&#34; rel=&#34;nofollow&#34;&#62;https://api.maileon.com/1.0/contacts/&#60;/a&#62;{element_3}?permission=1&#60;br /&#62;
where {element_3} is the emailfield in the form.&#60;/p&#62;
&#60;p&#62;I added that functionality in helper-functions.php around line 320, just before&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//send the data to the URL
$webhook_url_info = parse_url($webhook_url);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;i added:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$template_values = array_map(&#38;#39;urlencode&#38;#39;, $template_values);

//replace stuff also in the url
$webhook_url = str_replace($template_variables, $template_values, $webhook_url);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This fixes it, maybe you can add it to an future update.&#60;br /&#62;
It would also be great to have the possibility to only send the form-data over api if there are specific conditions which are met.&#60;/p&#62;
&#60;p&#62;Greetings&#60;br /&#62;
Tiron
&#60;/p&#62;</description>
</item>

</channel>
</rss>
