<?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: variables on the success page?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: variables on the success page?</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:40:23 +0000</pubDate>

<item>
<title>frungimi on "variables on the success page?"</title>
<link>https://www.machform.com/forums/topic/variables-on-the-success-page#post-4880</link>
<pubDate>Wed, 04 Mar 2009 07:12:09 +0000</pubDate>
<dc:creator>frungimi</dc:creator>
<guid isPermaLink="false">4880@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;how can we show all the info submitted?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "variables on the success page?"</title>
<link>https://www.machform.com/forums/topic/variables-on-the-success-page#post-3994</link>
<pubDate>Fri, 12 Dec 2008 19:50:12 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3994@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You can add a session variable to your form, to do that you should edit 2 files, &#34;includes/post-functions.php&#34; and &#34;includes/view-function.php&#34;. In my example I assume you will get data from element_1 in form 2, Here is the details :&#60;/p&#62;
&#60;p&#62;1. Edit post-functions.php, search around line 939 ~ 950 you will find 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 with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$_SESSION[&#38;#39;success_data&#38;#39;] = &#38;#39;&#38;#39;;
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;element_1&#38;#39; &#38;#38;&#38;#38; $form_id  == &#38;#39;2&#38;#39;)
	{
		$_SESSION[&#38;#39;success_data&#38;#39;] = $value;
	}

	if(!empty($value)){
		$has_value = true;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Edit &#34;view-functions.php&#34;, search around line 2243 you will see this code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h2&#38;gt;{$form-&#38;gt;success_message}&#38;lt;/h2&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h2&#38;gt;{$form-&#38;gt;success_message}  {$_SESSION[&#38;#39;success_data&#38;#39;]}&#38;lt;/h2&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;make sure you have adjust form ID and element ID with yours.
&#60;/p&#62;</description>
</item>
<item>
<title>spookynutz on "variables on the success page?"</title>
<link>https://www.machform.com/forums/topic/variables-on-the-success-page#post-3982</link>
<pubDate>Fri, 12 Dec 2008 09:40:50 +0000</pubDate>
<dc:creator>spookynutz</dc:creator>
<guid isPermaLink="false">3982@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is there a way to use form variables on the success page? Like, &#34;Success! An e-mail has been sent to {element_7}
&#60;/p&#62;</description>
</item>

</channel>
</rss>
