<?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: Send form data to http POST/GET URL</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Send form data to http POST/GET URL</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 07:46:55 +0000</pubDate>

<item>
<title>redityo on "Send form data to http POST/GET URL"</title>
<link>https://www.machform.com/forums/topic/send-form-data-to-http-postget-url#post-3993</link>
<pubDate>Fri, 12 Dec 2008 19:29:27 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3993@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Do you want to redirect form after submit process, with URL GET data on it? to do so you should edit your &#34;include/post-functions.php&#34;. In this example I assume you are using form ID = 2, In line 939 ~ 951 You will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($table_data as $key=&#38;gt;$value){

	if($value == &#38;#39;&#38;#39;){ //don&#38;#39;t insert blank entry
		continue;
	}
	$value		    = mysql_real_escape_string($value);
	$field_list    .= &#38;quot;&#38;lt;code&#38;gt;$key&#38;lt;/code&#38;gt;,&#38;quot;;
	$field_values  .= &#38;quot;&#38;#39;$value&#38;#39;,&#38;quot;;

	if(!empty($value)){
		$has_value = true;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with this one&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($table_data as $key=&#38;gt;$value){

	if($value == &#38;#39;&#38;#39;){ //don&#38;#39;t insert blank entry
		continue;
	}
	$value		    = mysql_real_escape_string($value);
	$field_list    .= &#38;quot;&#38;lt;code&#38;gt;$key&#38;lt;/code&#38;gt;,&#38;quot;;
	$field_values  .= &#38;quot;&#38;#39;$value&#38;#39;,&#38;quot;;

	if ($key != &#38;#39;ip_address&#38;#39; &#38;#38;&#38;#38; $key != &#38;#39;date_created&#38;#39;)
	$url_data .= $url_data  .  $key . &#38;#39;=&#38;#39; .$value .&#38;#39;&#38;#38;&#38;#39;;

	if(!empty($value)){
		$has_value = true;
	}
}

if ($form_id == &#38;#39;2&#38;#39;)
{
	if ($url_data != &#38;#39;&#38;#39;)
		$process_result[&#38;#39;form_redirect&#38;#39;] = &#38;quot;http://www.domain.com/handler.php?&#38;quot; . substr($url_data,0,-1);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;if you are using page review, you should add some code again :&#60;/p&#62;
&#60;p&#62;1. add this code around line 970, exactly bellow this code &#60;strong&#62;if(!empty($form_review)){&#60;/strong&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($process_result[&#38;#39;form_redirect&#38;#39;]))
		$_SESSION[&#38;#39;url_data&#38;#39;] = $process_result[&#38;#39;form_redirect&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Around line 2191, exactly bellow this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$esr_plain_text	= $row[&#38;#39;esr_plain_text&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add this code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (isset($_SESSION[&#38;#39;url_data&#38;#39;]) &#38;#38;&#38;#38; !empty($_SESSION[&#38;#39;url_data&#38;#39;]) &#38;#38;&#38;#38; $form_id = &#38;#39;2&#38;#39;)
{
	$form_redirect = $_SESSION[&#38;#39;url_data&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>browncom on "Send form data to http POST/GET URL"</title>
<link>https://www.machform.com/forums/topic/send-form-data-to-http-postget-url#post-3984</link>
<pubDate>Fri, 12 Dec 2008 11:23:04 +0000</pubDate>
<dc:creator>browncom</dc:creator>
<guid isPermaLink="false">3984@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is it possible to send the form data to a HTTP POST/GET URL instead of to an email address upon submit? &#60;/p&#62;
&#60;p&#62;i.e.&#60;br /&#62;
&#60;a href=&#34;http://www.domain.com/formhandler.php?first_name=John&#38;#38;Last_Name=Doe&#34; rel=&#34;nofollow&#34;&#62;http://www.domain.com/formhandler.php?first_name=John&#38;#38;Last_Name=Doe&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
