<?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: Add Session login id</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Add Session login id</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:06:07 +0000</pubDate>

<item>
<title>Lobbyof on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-17779</link>
<pubDate>Tue, 26 Mar 2013 16:23:34 +0000</pubDate>
<dc:creator>Lobbyof</dc:creator>
<guid isPermaLink="false">17779@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I've made the mods, and the field is stored in the db. However, afterwards if I view any the Entries in the table (through the machform panel), and then Edit one of the records, the Originator field is blank on the edit page.&#60;/p&#62;
&#60;p&#62;Paddy
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-16998</link>
<pubDate>Fri, 01 Feb 2013 08:04:53 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">16998@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The code should be the same, but the location/line number of the code might change a bit.
&#60;/p&#62;</description>
</item>
<item>
<title>Lobbyof on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-16929</link>
<pubDate>Wed, 30 Jan 2013 22:36:41 +0000</pubDate>
<dc:creator>Lobbyof</dc:creator>
<guid isPermaLink="false">16929@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I see V3.4 is out now, will the above mod still work or do you think it'll have unintended consequences?&#60;/p&#62;
&#60;p&#62;I presume its just a matter of changing view-functions.php as before.
&#60;/p&#62;</description>
</item>
<item>
<title>Lobbyof on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-15408</link>
<pubDate>Fri, 20 Jul 2012 16:54:47 +0000</pubDate>
<dc:creator>Lobbyof</dc:creator>
<guid isPermaLink="false">15408@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you, what you provided worked perfectly:&#60;/p&#62;
&#60;p&#62;Ok, first you will need to add a &#34;Single Line Text&#34; field into your form, which will be used as the hidden field.&#60;br /&#62;
Apply the CSS class &#34;hidden&#34; to hide the field.&#60;/p&#62;
&#60;p&#62;Then update your &#34;includes/view-functions.php&#34; file with the one I attached.&#60;br /&#62;
I've placed the code around line 57-61:&#60;/p&#62;
&#60;p&#62;//start custom login session&#60;br /&#62;
if($element-&#38;gt;form_id == 2 &#38;#38;&#38;#38; $element-&#38;gt;id == 14){&#60;br /&#62;
   $element-&#38;gt;default_value = $_SESSION['SESS_LOGIN'];&#60;br /&#62;
}&#60;br /&#62;
//end custom login session&#60;/p&#62;
&#60;p&#62;the code assumed your hidden field is having element id = 14.&#60;br /&#62;
You might need to change this number with your own correct number (view the HTML source of your form to see the element id of your hidden field).
&#60;/p&#62;</description>
</item>
<item>
<title>Lobbyof on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-15250</link>
<pubDate>Fri, 06 Jul 2012 19:55:43 +0000</pubDate>
<dc:creator>Lobbyof</dc:creator>
<guid isPermaLink="false">15250@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Response emailed
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-15248</link>
<pubDate>Fri, 06 Jul 2012 09:31:04 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15248@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It is possible through some modification. Can you let me know the URL of your form?&#60;br /&#62;
You can send the URL via email if you don't want to post it here.&#60;/p&#62;
&#60;p&#62;Mail to: customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>Lobbyof on "Add Session login id"</title>
<link>https://www.machform.com/forums/topic/add-session-login-id#post-15239</link>
<pubDate>Thu, 05 Jul 2012 22:15:38 +0000</pubDate>
<dc:creator>Lobbyof</dc:creator>
<guid isPermaLink="false">15239@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Great product, setup a form in minutes!!&#60;/p&#62;
&#60;p&#62;I have a two part process, a php script allows the user to login (unique login name).&#60;br /&#62;
I want to store the username they have used in the form (hidden field is fine) just for reporting purposes so I can see who generated the form data for each submission. &#60;/p&#62;
&#60;p&#62;The login id is stored globally, by a&#60;br /&#62;
$_SESSION['SESS_LOGIN'] = $member['login'];&#60;/p&#62;
&#60;p&#62;which is in the login exec php file. &#60;/p&#62;
&#60;p&#62;Can that be entered into a form?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
