<?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: Post Session Variable</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Post Session Variable</description>
<language>en</language>
<pubDate>Fri, 11 Sep 2026 09:29:35 +0000</pubDate>

<item>
<title>yuniar on "Post Session Variable"</title>
<link>https://www.machform.com/forums/topic/post-session-variable#post-10983</link>
<pubDate>Fri, 03 Dec 2010 20:47:36 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">10983@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;We've replied to your support request email. Please check it there.
&#60;/p&#62;</description>
</item>
<item>
<title>AKirob on "Post Session Variable"</title>
<link>https://www.machform.com/forums/topic/post-session-variable#post-10975</link>
<pubDate>Thu, 02 Dec 2010 23:50:03 +0000</pubDate>
<dc:creator>AKirob</dc:creator>
<guid isPermaLink="false">10975@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
I'm trying to pass a session variable from one page to a field on my form. I'm using the advanced method of embedding.&#60;/p&#62;
&#60;p&#62;The session var setting goes on here;&#60;/p&#62;
&#60;p&#62;&#38;lt;?&#60;/p&#62;
&#60;p&#62;if (isset($_POST['location'])) {&#60;br /&#62;
// Start session support&#60;br /&#62;
session_start();&#60;/p&#62;
&#60;p&#62;// Set the session var&#60;br /&#62;
$_SESSION['location'] = $_POST['location'];&#60;/p&#62;
&#60;p&#62;// Redirect to a following page&#60;br /&#62;
header(&#34;Location: form.php&#34;);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;br /&#62;
&#38;lt;form method=&#34;post&#34;&#38;gt;&#60;br /&#62;
&#38;lt;select name=&#34;location&#34;&#38;gt;&#60;br /&#62;
&#38;lt;option&#38;gt;A&#38;lt;/option&#38;gt;&#60;br /&#62;
&#38;lt;option&#38;gt;B&#38;lt;/option&#38;gt;&#60;br /&#62;
&#38;lt;option&#38;gt;C&#38;lt;/option&#38;gt;&#60;br /&#62;
&#38;lt;/select&#38;gt;&#60;br /&#62;
&#38;lt;input type=&#34;submit&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;/form&#38;gt;&#60;/p&#62;
&#60;p&#62;My form.php looks like;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php session_start(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
	require(&#34;/var/www/vhosts/xxx.com/httpdocs/form/machform.php&#34;);&#60;br /&#62;
	$mf_param['form_id'] = 6;&#60;br /&#62;
	$mf_param['base_path'] = 'http://www.xxx.com/form/';&#60;br /&#62;
	display_machform($mf_param);&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Please help!&#60;/p&#62;
&#60;p&#62;Thank you!!!&#60;/p&#62;
&#60;p&#62;Akirob
&#60;/p&#62;</description>
</item>

</channel>
</rss>
