<?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: standard vs advance form code</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: standard vs advance form code</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:28:11 +0000</pubDate>

<item>
<title>texags2008 on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6977</link>
<pubDate>Thu, 20 Aug 2009 01:04:37 +0000</pubDate>
<dc:creator>texags2008</dc:creator>
<guid isPermaLink="false">6977@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;awesome. will try when i get home from work. thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6975</link>
<pubDate>Wed, 19 Aug 2009 22:47:38 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6975@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ah .. I see, advance embed code do not recognize &#34;$_REQUEST['id']&#34; code indeed. You need to determine what is your form id with custom code. To do so, you can use a session variable, you already have advance embed code like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	require(&#38;quot;C:/path/machform.php&#38;quot;);
	$mf_param[&#38;#39;form_id&#38;#39;] = 1;
	$mf_param[&#38;#39;base_path&#38;#39;] = &#38;#39;http://yourdomain.com/machform/&#38;#39;;
	display_machform($mf_param);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then, add a session variable to be like this &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	require(&#38;quot;C:/path/machform.php&#38;quot;);
	$mf_param[&#38;#39;form_id&#38;#39;] = 1;
	$_SESSION[&#38;#39;sess_form_id&#38;#39;] = 1;
	$mf_param[&#38;#39;base_path&#38;#39;] = &#38;#39;http://yourdomain.com/machform/&#38;#39;;
	display_machform($mf_param);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;after that, add an &#34;or&#34; condition to your &#34;view-function.php&#34; like this &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(($_REQUEST[&#38;#39;id&#38;#39;] == 1 &#124;&#124; $_SESSION[&#38;#39;sess_form_id&#38;#39;] == 1 ) &#38;#38;&#38;#38; ($element-&#38;gt;id == 3)){
$element-&#38;gt;default_value = $_SESSION[&#38;#39;your_session_var&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>texags2008 on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6972</link>
<pubDate>Wed, 19 Aug 2009 11:16:59 +0000</pubDate>
<dc:creator>texags2008</dc:creator>
<guid isPermaLink="false">6972@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;in view-functions if i place &#60;/p&#62;
&#60;p&#62;echo $_REQUEST['id'];&#60;/p&#62;
&#60;p&#62;it will print the form ID for a form added the standard iframe way but nothing when inserted the advanced php way. is there another variable used when added via php which would distinguish which form it is?&#60;/p&#62;
&#60;p&#62;as a temp fix, since i only need\have one form up at a time, i removed the logic of determining which form it is and only care about which element it is.
&#60;/p&#62;</description>
</item>
<item>
<title>texags2008 on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6964</link>
<pubDate>Tue, 18 Aug 2009 20:37:03 +0000</pubDate>
<dc:creator>texags2008</dc:creator>
<guid isPermaLink="false">6964@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Here is my previous thread. I never got the variables working using the advance code, only through the standard.&#60;/p&#62;
&#60;p&#62;[url]http://www.appnitro.com/forums/topic/session-variable-as-default-value-in-admin-only-fields?replies=6[/url]
&#60;/p&#62;</description>
</item>
<item>
<title>texags2008 on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6963</link>
<pubDate>Tue, 18 Aug 2009 20:15:29 +0000</pubDate>
<dc:creator>texags2008</dc:creator>
<guid isPermaLink="false">6963@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This is on a wordpress blog. I am auto populating a single line text and an email element with the info for the logged in user.&#60;/p&#62;
&#60;p&#62;Are you saying when building the form for the default value I can just put the variable in there? I am doing it this way because that is how yall told me a year ago!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6962</link>
<pubDate>Tue, 18 Aug 2009 19:52:03 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6962@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Tia,&#60;/p&#62;
&#60;p&#62;Why you don't use &#34;default value&#34; options when edit the form rather than create a custom code ? I think it's much easier.
&#60;/p&#62;</description>
</item>
<item>
<title>texags2008 on "standard vs advance form code"</title>
<link>https://www.machform.com/forums/topic/standard-vs-advance-form-code#post-6958</link>
<pubDate>Tue, 18 Aug 2009 12:01:58 +0000</pubDate>
<dc:creator>texags2008</dc:creator>
<guid isPermaLink="false">6958@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am passing session variables (username and email) to automatically set the default values for two elements. &#60;/p&#62;
&#60;p&#62;Is there any reason this process works when using the standard form code and not via the advanced? And yes I am doing the session_start().&#60;/p&#62;
&#60;p&#62;tia
&#60;/p&#62;</description>
</item>

</channel>
</rss>
