<?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: How to limit access to redirect page, after submission?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: How to limit access to redirect page, after submission?</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:27:26 +0000</pubDate>

<item>
<title>yuniar on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-12620</link>
<pubDate>Fri, 23 Sep 2011 07:40:00 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">12620@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;For checkboxes or radio button, you will only get the index number of the selected choice. To get the actual label, you'll need to do a query to &#34;ap_element_options&#34; table. There you'll find the list of the actual labels for your checkboxes/radio buttons.
&#60;/p&#62;</description>
</item>
<item>
<title>tobyp on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-12611</link>
<pubDate>Thu, 22 Sep 2011 11:03:40 +0000</pubDate>
<dc:creator>tobyp</dc:creator>
<guid isPermaLink="false">12611@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi I'm trying to echo the checkbox labels that were selected on a custom success.php page. I've got the other text fields fields outputting ok by following the instructions here but I'm struggling with the checkboxes.&#60;/p&#62;
&#60;p&#62;I'm using multiple forms with different checkbox labels so if possible I'd like to use the form id.
&#60;/p&#62;</description>
</item>
<item>
<title>drumaboy46 on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-11752</link>
<pubDate>Tue, 05 Apr 2011 04:41:08 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">11752@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;solution that ended up working for my session_regenerate_id() had nothing to do with the problem, I had the code snippet in the wrong place....man do I love Machforms.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;unset($_SESSION[&#38;#39;is_valid_user&#38;#39;]);
		unset($_SESSION[&#38;#39;form_data&#38;#39;]);

		if ($form_id == 15) {
			///CUSTOM CODE FOR GLOW EVITE
			$_SESSION[&#38;#39;is_valid_user&#38;#39;] = true;
			$_SESSION[&#38;#39;form_data&#38;#39;] = $table_data;
			///
		}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>drumaboy46 on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-11631</link>
<pubDate>Fri, 18 Mar 2011 04:37:31 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">11631@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ok  I will and I will re-explain there as well.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-11621</link>
<pubDate>Thu, 17 Mar 2011 21:25:06 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11621@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;drumaboy -- yes, please send me the file and let me know the URL to your form. I'll check it.
&#60;/p&#62;</description>
</item>
<item>
<title>drumaboy46 on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-11613</link>
<pubDate>Wed, 16 Mar 2011 23:16:39 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">11613@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i can send you the file if need be thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>drumaboy46 on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission/page/2#post-11607</link>
<pubDate>Wed, 16 Mar 2011 09:40:35 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">11607@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yuniar HELP!!!! I constantly get the You are not authorized to see this page! with the above method. I have custom code in view-functions.php that look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//CUSTOM CODE
		session_start();
		$session_id = session_id();
		session_regenerate_id();
		$new_sessionid = session_id();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;its so that I can generate a new session Id to be place in a hidden field on the form so that I can track it later is this interfering witht the code also I'm using form redirect to . &#60;a href=&#34;http://www.mydomain.com/success.php&#34; rel=&#34;nofollow&#34;&#62;http://www.mydomain.com/success.php&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>brightmyer on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-11389</link>
<pubDate>Thu, 10 Feb 2011 02:08:27 +0000</pubDate>
<dc:creator>brightmyer</dc:creator>
<guid isPermaLink="false">11389@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If I wanted to create a link on the &#34;Thank you for submitting&#34; page to the actual results, how would I do that?  The main form fiemds will be text fields.  I am looking for a way to display the results of a survey (Name, Item you are bringing, etc.) in a list so people can see real time results.  Is this doable?  I would like to embed the results into a webpage.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-10326</link>
<pubDate>Wed, 01 Sep 2010 18:25:13 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">10326@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;discosteve -- the code should be the same as the one posted by redityo above.&#60;/p&#62;
&#60;p&#62;However, the code posted above doesn't seems to be displayed properly.&#60;br /&#62;
Check this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;quot;select ~option~ from ap_element_options&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;change the ~ character with backtick.&#60;/p&#62;
&#60;p&#62;If the problem persist, you can contact us directly via email and send us your modified files. We'll check it. Make sure to let us know the URL to your form as well.
&#60;/p&#62;</description>
</item>
<item>
<title>discosteve on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-10322</link>
<pubDate>Wed, 01 Sep 2010 00:30:11 +0000</pubDate>
<dc:creator>discosteve</dc:creator>
<guid isPermaLink="false">10322@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I know this forum is from a while back, but I'm trying to get this to work for one of my forms.  Several of the fields are checkboxes and radio buttons and I'm trying to modify the code redityo gives for the dropdown fields to work with checkboxes and radio buttons.  So far I can't get it to work properly.  Any chance someone can help me out and detail the php code I would need to use to get checkboxes and radio buttons to store to the session variable and display the chosen button on the results page?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-9802</link>
<pubDate>Sat, 26 Jun 2010 22:15:22 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">9802@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The codes seems fine, it should works. It might be you've put $_SESSION['form_data'] into the wrong line in post-functions.php file.&#60;br /&#62;
For the latest version (2.3), you can go to line 1216 for this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$process_result[&#38;#39;status&#38;#39;] = true;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put these code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$_SESSION[&#38;#39;is_valid_user&#38;#39;] = true;
$_SESSION[&#38;#39;form_data&#38;#39;] = $table_data;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, if the problem still persist, you can send us your &#34;post-functions.php&#34; and &#34;submitted.php&#34; file to &#60;/p&#62;
&#60;p&#62;customer.service[at]appnitro.com&#60;/p&#62;
&#60;p&#62;I will check it
&#60;/p&#62;</description>
</item>
<item>
<title>tundeogidi on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-9791</link>
<pubDate>Fri, 25 Jun 2010 20:03:00 +0000</pubDate>
<dc:creator>tundeogidi</dc:creator>
<guid isPermaLink="false">9791@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I can only see the message below after submitting the form.&#60;/p&#62;
&#60;p&#62;'You are not authorized to see this page'&#60;/p&#62;
&#60;p&#62;My submitted.php page content is pasted below;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
	session_start();&#60;br /&#62;
	if($_SESSION['is_valid_user'] !== true){&#60;br /&#62;
		die(&#34;You are not authorized to see this page&#34;);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	print_r($_SESSION['form_data']);&#60;br /&#62;
?&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-9779</link>
<pubDate>Thu, 24 Jun 2010 10:13:52 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">9779@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Have you tried doing the above code? Was there any errors?
&#60;/p&#62;</description>
</item>
<item>
<title>tundeogidi on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-9776</link>
<pubDate>Wed, 23 Jun 2010 22:42:54 +0000</pubDate>
<dc:creator>tundeogidi</dc:creator>
<guid isPermaLink="false">9776@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Please could you help with a code to create a submitted.php file to diaplay the following;&#60;br /&#62;
---------------------&#60;br /&#62;
Dear (Full Name),&#60;/p&#62;
&#60;p&#62;Thank you for your form submission, your form number is (entry_no).&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
---------------------&#60;/p&#62;
&#60;p&#62;Help me with the code so I can simply copy and paste in Dereamweaver to create a page called submitted.php which use will be redirect to after form submission.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-3331</link>
<pubDate>Sat, 18 Oct 2008 06:02:20 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3331@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This forum can't display backticks, so make sure to replace the &#34;~&#34; characters to backticks in this line:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;select ~option~ from ap_element_options&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>gordonm on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-3329</link>
<pubDate>Sat, 18 Oct 2008 03:27:29 +0000</pubDate>
<dc:creator>gordonm</dc:creator>
<guid isPermaLink="false">3329@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Wow! Your support is second to none.&#60;/p&#62;
&#60;p&#62;Thank you very much will add in the code, thats helped me out so much.&#60;/p&#62;
&#60;p&#62;Thanks again
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-3326</link>
<pubDate>Fri, 17 Oct 2008 20:04:36 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3326@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;It seems you need to add more code on &#34;include/post-functions.php&#34; to get drop down text. First you have to change these lines :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$_SESSION[&#38;#39;is_valid_user&#38;#39;] = true;
$_SESSION[&#38;#39;form_data&#38;#39;] = $table_data;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$_SESSION[&#38;#39;is_valid_user&#38;#39;] = true;

$new_table_data = array();
foreach ($table_data as $key=&#38;gt;$value) {
	if ($key == &#38;#39;element_6&#38;#39;)
		$new_table_data[$key] = get_dropdown_text($form_id,&#38;#39;6&#38;#39;,$value);
	elseif ($key == &#38;#39;element_7&#38;#39;)
		$new_table_data[$key] = get_dropdown_text($form_id,&#38;#39;7&#38;#39;,$value);
	else
		$new_table_data[$key] =  $value;
}

$_SESSION[&#38;#39;form_data&#38;#39;] = $new_table_data;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;after that you can insert these code between line 10&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function get_dropdown_text($form_id,$element_id,$value_id) {
	$strsql = &#38;quot;select ~option~ from ap_element_options
			   where form_id = &#38;#39;&#38;quot; . $form_id . &#38;quot;&#38;#39;  and
					 element_id = &#38;#39;&#38;quot; . $element_id . &#38;quot;&#38;#39; and
					 option_id = &#38;#39;&#38;quot; .$value_id . &#38;quot;&#38;#39; &#38;quot;;

	$result = do_query($strsql);
	$row =  do_fetch_result($result);
	return  $row[0];
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>gordonm on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-3317</link>
<pubDate>Thu, 16 Oct 2008 21:00:24 +0000</pubDate>
<dc:creator>gordonm</dc:creator>
<guid isPermaLink="false">3317@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar&#60;/p&#62;
&#60;p&#62;I want to do something similar, although my form is pretty much all dropdown lists... the session data available is in index form rather than the drop down text. How could I approach that one?
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-3178</link>
<pubDate>Thu, 02 Oct 2008 21:45:10 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3178@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar!&#60;/p&#62;
&#60;p&#62;The delay is no problem at all!&#60;br /&#62;
...just make sure you enjoy your holidays! :)&#60;/p&#62;
&#60;p&#62;I will give the code a go as soon as possible. Thanks! :D
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "How to limit access to redirect page, after submission?"</title>
<link>https://www.machform.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission#post-3177</link>
<pubDate>Thu, 02 Oct 2008 21:37:25 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3177@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Now, to limit access to that page. Simply add this code at the very top of your submitted.php file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	session_start();
	if($_SESSION[&#38;#39;is_valid_user&#38;#39;] !== true){
		die(&#38;quot;You are not authorized to see this page&#38;quot;);
	}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
