<?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: Generate Unique Number based on form name and an ID</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Generate Unique Number based on form name and an ID</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:58:29 +0000</pubDate>

<item>
<title>kirbykm on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-3232</link>
<pubDate>Tue, 07 Oct 2008 01:27:02 +0000</pubDate>
<dc:creator>kirbykm</dc:creator>
<guid isPermaLink="false">3232@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I figured it out... thanks so much!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-3184</link>
<pubDate>Fri, 03 Oct 2008 07:30:10 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3184@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;To pass some field values to your redirect page, your redirect page should be a PHP file.&#60;/p&#62;
&#60;p&#62;Then follow the instruction here:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission?replies=9#post-3176&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission?replies=9#post-3176&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That would allow you to display your form values into your redirect page.
&#60;/p&#62;</description>
</item>
<item>
<title>kirbykm on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-3181</link>
<pubDate>Fri, 03 Oct 2008 01:53:36 +0000</pubDate>
<dc:creator>kirbykm</dc:creator>
<guid isPermaLink="false">3181@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Would it be possible to do this same thing, except pass some of the other field values along to the redirect page?&#60;/p&#62;
&#60;p&#62;I would like to pass selected values along and then do some calculations with a javascript on my redirect page to have a total posted.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-1180</link>
<pubDate>Mon, 24 Mar 2008 07:45:12 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1180@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes. If you would like to limit it to certain form only, you can use this code instead:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($error_elements) &#38;#38;&#38;#38; empty($process_result[&#38;#39;custom_error&#38;#39;])){
	$process_result[&#38;#39;status&#38;#39;] = true;
	if($form_id == 2){
		$process_result[&#38;#39;form_redirect&#38;#39;]  = $form_redirect.&#38;quot;?unique_id_1={$form_id}&#38;#38;unique_id_2={$record_insert_id}&#38;quot;;
	}
}else{
	$process_result[&#38;#39;status&#38;#39;] = false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
That would limit it to form with id = 2.
&#60;/p&#62;</description>
</item>
<item>
<title>shay on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-1172</link>
<pubDate>Sat, 22 Mar 2008 23:37:32 +0000</pubDate>
<dc:creator>shay</dc:creator>
<guid isPermaLink="false">1172@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for that, it works great. I assume this means that all forms I create will have these extra items if the form is redirected to another page?&#60;/p&#62;
&#60;p&#62;Shay
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-1170</link>
<pubDate>Sat, 22 Mar 2008 17:19:22 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1170@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Basically, we need to append the unique id into the redirect URL.&#60;br /&#62;
Since you require two parameter to be passed, we can use form id and record id.&#60;/p&#62;
&#60;p&#62;Take a look into &#60;strong&#62;includes/post-functions.php&#60;/strong&#62; file, search around line 910 - 914:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($error_elements) &#38;#38;&#38;#38; empty($process_result[&#38;#39;custom_error&#38;#39;])){
	$process_result[&#38;#39;status&#38;#39;] = true;
}else{
	$process_result[&#38;#39;status&#38;#39;] = false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Modify the code above to be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($error_elements) &#38;#38;&#38;#38; empty($process_result[&#38;#39;custom_error&#38;#39;])){
	$process_result[&#38;#39;status&#38;#39;] = true;
	$process_result[&#38;#39;form_redirect&#38;#39;]  = $form_redirect.&#38;quot;?unique_id_1={$form_id}&#38;#38;unique_id_2={$record_insert_id}&#38;quot;;
}else{
	$process_result[&#38;#39;status&#38;#39;] = false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
That would append two parameters to your redirect URL. In this sample, we're adding unique_id_1 and unique_id_2, you can change this to whatever you need.
&#60;/p&#62;</description>
</item>
<item>
<title>shay on "Generate Unique Number based on form name and an ID"</title>
<link>https://www.machform.com/forums/topic/generate-unique-number-based-on-form-name-and-an-id#post-1168</link>
<pubDate>Sat, 22 Mar 2008 06:20:38 +0000</pubDate>
<dc:creator>shay</dc:creator>
<guid isPermaLink="false">1168@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm very new to MachForm and have a question about creating a unique number based on the form name and an ID. &#60;/p&#62;
&#60;p&#62;The idea is I would like to be able to pass this unique name+ID to paypal when the form is submitted so I can identify which form relates to which payment.&#60;/p&#62;
&#60;p&#62;I dont think this is available by default so am looking for some help from someone else who may have already done this.&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;br /&#62;
Shay
&#60;/p&#62;</description>
</item>

</channel>
</rss>
