<?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: Adding URL to Data submitted</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Adding URL to Data submitted</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 04:42:53 +0000</pubDate>

<item>
<title>redityo on "Adding URL to Data submitted"</title>
<link>https://www.machform.com/forums/topic/adding-url-to-data-submitted#post-13128</link>
<pubDate>Thu, 05 Jan 2012 22:21:51 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">13128@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Winston,&#60;/p&#62;
&#60;p&#62;The file name should &#34;view-functions.php&#34;, you can try to search the code in there. For version 2.4 the line is on 1690
&#60;/p&#62;</description>
</item>
<item>
<title>wjoell on "Adding URL to Data submitted"</title>
<link>https://www.machform.com/forums/topic/adding-url-to-data-submitted#post-13124</link>
<pubDate>Thu, 05 Jan 2012 05:41:14 +0000</pubDate>
<dc:creator>wjoell</dc:creator>
<guid isPermaLink="false">13124@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, could this post please be updated to cover the syntax changes in post-functions.php (v2.4)? A lot has changed in there and I'm having a hard time figuring out how to use the method above.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Winston
&#60;/p&#62;</description>
</item>
<item>
<title>lamina on "Adding URL to Data submitted"</title>
<link>https://www.machform.com/forums/topic/adding-url-to-data-submitted#post-12104</link>
<pubDate>Sat, 04 Jun 2011 15:26:11 +0000</pubDate>
<dc:creator>lamina</dc:creator>
<guid isPermaLink="false">12104@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi redityo,&#60;br /&#62;
Thank you for the prompt reply.  I cannot find the $element[$j] line in includes/post-functions.php - I am using the latest Machform version 2.4.  Can you assist please?&#60;br /&#62;
Many thanks&#60;br /&#62;
Richard
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Adding URL to Data submitted"</title>
<link>https://www.machform.com/forums/topic/adding-url-to-data-submitted#post-12102</link>
<pubDate>Sat, 04 Jun 2011 10:45:39 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">12102@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This possible with some customization. First of all, you need to add 1 single line text field into your form to hold the page url data. Then edit &#34;includes/view-functions.php&#34; file and go to around line 1682, you'll see these code  :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element[$j]-&#38;gt;default_value = htmlspecialchars($row[&#38;#39;element_default_value&#38;#39;]);&#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;if ($form_id == 9  &#38;#38;&#38;#38; $element[$j]-&#38;gt;id ==1 ) {
	$element[$j]-&#38;gt;default_value = $_SERVER[&#38;#39;HTTP_REFERER&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;After that, you can add these css code to hide the new field.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#li_1 {
display:none !important;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In there I assume your form id is 9 and the field element id to hold url data is 1. You need to change those id's with yours.
&#60;/p&#62;</description>
</item>
<item>
<title>lamina on "Adding URL to Data submitted"</title>
<link>https://www.machform.com/forums/topic/adding-url-to-data-submitted#post-12099</link>
<pubDate>Sat, 04 Jun 2011 01:49:52 +0000</pubDate>
<dc:creator>lamina</dc:creator>
<guid isPermaLink="false">12099@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, I would like to record the URL of the page from which a form is submitted. The form is included in a modal iframe. Is this possible and how do I go about doing this?&#60;br /&#62;
I have searched the forum to no avail :-(&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Richard
&#60;/p&#62;</description>
</item>

</channel>
</rss>
