<?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: Custom action URL and usage field data</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Custom action URL and usage field data</description>
<language>en</language>
<pubDate>Wed, 03 Jun 2026 17:54:09 +0000</pubDate>

<item>
<title>akash8m on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-12070</link>
<pubDate>Fri, 27 May 2011 23:39:27 +0000</pubDate>
<dc:creator>akash8m</dc:creator>
<guid isPermaLink="false">12070@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for the tip, I am trying the same thing but I get the following error.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.finndr.com/machform/view.php?id=4&#34; rel=&#34;nofollow&#34;&#62;http://www.finndr.com/machform/view.php?id=4&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;INSERT INTO &#60;code&#62;ap_form_4&#60;/code&#62; (element_3,ip_address,date_created) VALUES ('1225','174.97.171.90','2011-05-27 12:38:30'); Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'element_3,ip_address,date_created) VALUES ('' at line 1&#60;/p&#62;
&#60;p&#62;I want the user to enter the number (element3) and want it go to to the following link &#60;a href=&#34;http://www.finndr.com/page_id=element3&#34; rel=&#34;nofollow&#34;&#62;http://www.finndr.com/page_id=element3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
</item>
<item>
<title>bizzy on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5876</link>
<pubDate>Sun, 17 May 2009 09:52:47 +0000</pubDate>
<dc:creator>bizzy</dc:creator>
<guid isPermaLink="false">5876@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i got it working now...there was a couple of white spces at the end creating the problem..&#60;br /&#62;
i deleted the above file..&#60;br /&#62;
thanks for your help&#60;br /&#62;
thanks
&#60;/p&#62;</description>
</item>
<item>
<title>bizzy on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5874</link>
<pubDate>Sun, 17 May 2009 00:52:30 +0000</pubDate>
<dc:creator>bizzy</dc:creator>
<guid isPermaLink="false">5874@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i have uploded my post function code&#60;br /&#62;
you can find it here&#60;br /&#62;
&#60;a href=&#34;http://rapidshare.com/files/233725056/post.txt.html&#34; rel=&#34;nofollow&#34;&#62;http://rapidshare.com/files/233725056/post.txt.html&#60;/a&#62;&#60;br /&#62;
any help will be higly appriciated&#60;br /&#62;
thanks
&#60;/p&#62;</description>
</item>
<item>
<title>bizzy on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5870</link>
<pubDate>Sat, 16 May 2009 19:54:51 +0000</pubDate>
<dc:creator>bizzy</dc:creator>
<guid isPermaLink="false">5870@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i tired doing that as well...but its echoing the same error..altough the form is working perfectly...entering the database and redirecting..just echoing that error on the top&#60;br /&#62;
thanks
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5869</link>
<pubDate>Sat, 16 May 2009 11:47:15 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5869@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmmm .. maybe there is some typo when you modified the file, I think it's better to restore &#34;post-functions.php&#34; file and re-write the modification again.
&#60;/p&#62;</description>
</item>
<item>
<title>bizzy on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5864</link>
<pubDate>Sat, 16 May 2009 10:35:29 +0000</pubDate>
<dc:creator>bizzy</dc:creator>
<guid isPermaLink="false">5864@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i left simple }...got it working now..&#60;br /&#62;
but i am getting this error now&#60;br /&#62;
Warning: Cannot modify header information - headers already sent by (output started at /home/wordscri/public_html/machform/includes/post-functions.php:2304) in /home/wordscri/public_html/machform/view.php on line 8&#60;/p&#62;
&#60;p&#62;despite of the error..the redirection of the form was successful&#60;br /&#62;
thanks
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5863</link>
<pubDate>Sat, 16 May 2009 09:39:50 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5863@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Are sure have change the form id and element id number with yours ? if you look at the code, you will find this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_id == 19&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$key == &#38;#39;element_1&#38;#39;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;change the number with yours form id and element id
&#60;/p&#62;</description>
</item>
<item>
<title>bizzy on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5858</link>
<pubDate>Sat, 16 May 2009 00:43:42 +0000</pubDate>
<dc:creator>bizzy</dc:creator>
<guid isPermaLink="false">5858@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;hi,&#60;br /&#62;
i want to do something similar to the first case...but it didnt redirect&#60;br /&#62;
i get a suceess message only..if you could just suggest me something that would be great.&#60;br /&#62;
thanks
&#60;/p&#62;</description>
</item>
<item>
<title>celica on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5253</link>
<pubDate>Sat, 28 Mar 2009 04:37:54 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5253@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for your kind work on my request Redityo,&#60;/p&#62;
&#60;p&#62;This works great! Now I can use the review page and pass my variable to the final page. Your software is excellent.&#60;/p&#62;
&#60;p&#62;Regards Alan Davies
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5246</link>
<pubDate>Fri, 27 Mar 2009 21:40:17 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5246@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I see ..Since I don't know you will use the review feature so I only make the modification to normal case only :) .&#60;br /&#62;
Anyway you need to do some modification again to &#34;post-functions.php&#34; file to use those code with review feature enabled. From my previous code you have add this code in there :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 19) {
	if (!empty($url_data) &#38;#38;&#38;#38; $url_data != &#38;#39;&#38;#39;)
		$process_result[&#38;#39;form_redirect&#38;#39;]  = &#38;quot;http://www.domain.com/test.php?data=&#38;quot; . $url_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;update those code with this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 19) {
	if (!empty($url_data) &#38;#38;&#38;#38; $url_data != &#38;#39;&#38;#39;) {
		$process_result[&#38;#39;form_redirect&#38;#39;]  = &#38;quot;http://www.domain.com/test.php?data=&#38;quot; . $url_data;
		$_SESSION[&#38;#39;redirect&#38;#39;] = $process_result[&#38;#39;form_redirect&#38;#39;] ;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;it will store redirect url to the session variable, then go to around line 2295 you'll see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$commit_result[&#38;#39;form_redirect&#38;#39;] = $form_redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and add these code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_SESSION[&#38;#39;redirect&#38;#39;])) {
	$commit_result[&#38;#39;form_redirect&#38;#39;] = $_SESSION[&#38;#39;redirect&#38;#39;];
	unset($_SESSION[&#38;#39;redirect&#38;#39;]);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>celica on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5230</link>
<pubDate>Fri, 27 Mar 2009 02:20:47 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5230@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi yuniar,&#60;/p&#62;
&#60;p&#62;I have a page which includes a Machform form with hidden field to 'GET' 'domain' variable (the user selected 'domain' before the form). So for example the string is:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.essentialwebs.co.uk/whois/order.php?domain=myselecteddomain.co.uk&#34; rel=&#34;nofollow&#34;&#62;http://www.essentialwebs.co.uk/whois/order.php?domain=myselecteddomain.co.uk&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When the user completes and then submits this form, the 'domain' variable (in my case element_37) becomes 'data' because of the extra script in post-functions.php given by redityo in the solution above.&#60;/p&#62;
&#60;p&#62;My own 'success' form &#60;a href=&#34;http://www.essentialwebs.co.uk/form/success.php?data=myselecteddomain&#34; rel=&#34;nofollow&#34;&#62;http://www.essentialwebs.co.uk/form/success.php?data=myselecteddomain&#60;/a&#62; works well now, collecting the 'data' variable from the string by using the additional script in post-functions.php ---  but only if the &#34;Show Review Page Before Submitting&#34;.&#60;/p&#62;
&#60;p&#62;I really wish to use the &#34;Review Page Before Submitting&#34; but sadly I do not then have any redirect or the field data sent to the url string.&#60;/p&#62;
&#60;p&#62;What I am asking is could redityo's script shown above be placed elsewere in post-functions.php to also allow use of field data as variable after submitting a form when having the &#34;Review Page&#34; activated also?&#60;/p&#62;
&#60;p&#62;I think then the user will have a better experience.&#60;/p&#62;
&#60;p&#62;Thanks &#38;#38; Regards Alan Davies
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5222</link>
<pubDate>Thu, 26 Mar 2009 22:49:11 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">5222@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmm.. what variable are you referring to? custom variable?&#60;br /&#62;
Perhaps an example of the URL string would make it clear.
&#60;/p&#62;</description>
</item>
<item>
<title>celica on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5202</link>
<pubDate>Wed, 25 Mar 2009 20:03:21 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5202@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks very much for quick reply yuniar. &#60;/p&#62;
&#60;p&#62;Yes this now works well..&#60;/p&#62;
&#60;p&#62;but for me only if the 'form review' is not requested. &#60;/p&#62;
&#60;p&#62;Sorry to ask more, but can this little script be used to pass the variable to the url string even then? Perhaps it must be moved elsewhere on post-functions.php. That would be a great help to give a better user experience.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5200</link>
<pubDate>Wed, 25 Mar 2009 13:55:40 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">5200@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ooops..sorry, it should be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($key == &#38;#39;element_1&#38;#39;) {$url_data = $value; }&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>celica on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-5191</link>
<pubDate>Wed, 25 Mar 2009 03:36:36 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5191@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This didn't work for me; I got:&#60;/p&#62;
&#60;p&#62;&#34;Parse error: syntax error, unexpected '{' in /home/myweb/public_html/form/includes/post-functions.php on line 948 &#34;&#60;/p&#62;
&#60;p&#62;when submitting the form. &#60;/p&#62;
&#60;p&#62;This suggests the following line: &#60;/p&#62;
&#60;p&#62;if ($key == 'element_1') {$url_data = $value};&#60;/p&#62;
&#60;p&#62;has a syntax error? Grateful for help.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-4093</link>
<pubDate>Mon, 29 Dec 2008 14:34:14 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4093@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I think you can send the element/field data to another page through GET variable.To do so you should edit &#34;include/post-functions.php&#34;. I assume you are working on form 19 with 2 fields in there.&#60;br /&#62;
1. text box {element_1}&#60;br /&#62;
2. another text box {element_2}&#60;/p&#62;
&#60;p&#62;for example, you will send &#34;text box {element_1} data via GET variable.&#60;br /&#62;
Try to search around line 939 ~ 951, you will see this 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;back&#38;gt;$key&#38;lt;back&#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 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;back&#38;gt;$key&#38;lt;back&#38;gt;,&#38;quot;;
	$field_values  .= &#38;quot;&#38;#39;$value&#38;#39;,&#38;quot;;

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

	if ($form_id == 19) {
		if ($key == &#38;#39;element_1&#38;#39;) {$url_data = $value};
	}
}

if ($form_id == 19) {
	if (!empty($url_data) &#38;#38;&#38;#38; $url_data != &#38;#39;&#38;#39;)
		$process_result[&#38;#39;form_redirect&#38;#39;]  = &#38;quot;http://www.domain.com/test.php?data=&#38;quot; . $url_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;don't forget to replace &#38;lt;back&#38;gt; with &#34;backtick&#34; character. It should redirect to &#34;http://www.domain.com/test.php&#34; page after submission with variable &#34;data&#34; on it.
&#60;/p&#62;</description>
</item>
<item>
<title>crash on "Custom action URL and usage field data"</title>
<link>https://www.machform.com/forums/topic/custom-action-url-and-usage-field-data#post-4083</link>
<pubDate>Mon, 29 Dec 2008 08:11:25 +0000</pubDate>
<dc:creator>crash</dc:creator>
<guid isPermaLink="false">4083@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, I have a small question on MachForm. Can I edit action URL in any form in MachForm and can I usage field data as variable in any script after submiting a form? I want form where user can set any fields and after submiting form redirect to my script where I can work with variables which user set. Sry for my english, but I hope that u understand my question :o)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
