<?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: Referring URL in form</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Referring URL in form</description>
<language>en</language>
<pubDate>Wed, 17 Jun 2026 06:54:00 +0000</pubDate>

<item>
<title>yuniar on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6345</link>
<pubDate>Wed, 24 Jun 2009 19:11:39 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">6345@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That sounds great :-)
&#60;/p&#62;</description>
</item>
<item>
<title>alanbrown on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6341</link>
<pubDate>Wed, 24 Jun 2009 14:10:18 +0000</pubDate>
<dc:creator>alanbrown</dc:creator>
<guid isPermaLink="false">6341@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;OK....sorted. It seems the forms I designed earlier just wouldn't take the data but any new forms will! Anyway, all good and working now. Thank you for your help but this thread can now end. Cheers
&#60;/p&#62;</description>
</item>
<item>
<title>alanbrown on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6337</link>
<pubDate>Tue, 23 Jun 2009 20:30:16 +0000</pubDate>
<dc:creator>alanbrown</dc:creator>
<guid isPermaLink="false">6337@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The two pages are these:-&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gotokefalonia.com/machform/view.php?id=11&#38;#38;property=test&#34; rel=&#34;nofollow&#34;&#62;www.gotokefalonia.com/machform/view.php?id=11&#38;#38;property=test&#60;/a&#62; ( a simple form to test this method worked for me)&#60;/p&#62;
&#60;p&#62;and&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gotokefalonia.com/machform/view.php?id=4&#38;#38;property=test&#34; rel=&#34;nofollow&#34;&#62;www.gotokefalonia.com/machform/view.php?id=4&#38;#38;property=test&#60;/a&#62; (a form I started to design erlier which simply will NOT pick up the string 'test')
&#60;/p&#62;</description>
</item>
<item>
<title>alanbrown on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6336</link>
<pubDate>Tue, 23 Jun 2009 19:08:47 +0000</pubDate>
<dc:creator>alanbrown</dc:creator>
<guid isPermaLink="false">6336@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Just to clarify, I didn't enter the &#60;/p&#62;
&#60;p&#62;$element[$j]-&#38;gt;default_value = htmlspecialchars($row['element_default_value']);&#60;/p&#62;
&#60;p&#62;Just the two lines of code below it. Still dont understand..........
&#60;/p&#62;</description>
</item>
<item>
<title>alanbrown on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6332</link>
<pubDate>Tue, 23 Jun 2009 15:45:44 +0000</pubDate>
<dc:creator>alanbrown</dc:creator>
<guid isPermaLink="false">6332@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This is the exact code I have put in:-&#60;/p&#62;
&#60;p&#62;	$element[$j]-&#38;gt;default_value = htmlspecialchars($row['element_default_value']);&#60;/p&#62;
&#60;p&#62;if($form_id == 4 &#38;#38;&#38;#38; $row['element_id'] == 1){&#60;br /&#62;
	$element[$j]-&#38;gt;default_value = $_GET['property'];&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;if($form_id == 11 &#38;#38;&#38;#38; $row['element_id'] == 1){&#60;br /&#62;
	$element[$j]-&#38;gt;default_value = $_GET['property'];&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;However only Form 11 works, form 4 will not take the data. The element ID is correct but o no avail. What am I doing wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6330</link>
<pubDate>Tue, 23 Jun 2009 09:46:12 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">6330@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That seems to be some syntax error. Make sure to copy the whole code, including the curly braces.&#60;/p&#62;
&#60;p&#62;Like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($form_id == 5 &#38;#38;&#38;#38; $row[&#38;#39;element_id&#38;#39;] == 3){
	$element[$j]-&#38;gt;default_value = $_GET[&#38;#39;email&#38;#39;];
}

if($form_id == 6 &#38;#38;&#38;#38; $row[&#38;#39;element_id&#38;#39;] == 3){
	$element[$j]-&#38;gt;default_value = $_GET[&#38;#39;email2&#38;#39;];
}

if($form_id == 7 &#38;#38;&#38;#38; $row[&#38;#39;element_id&#38;#39;] == 3){
	$element[$j]-&#38;gt;default_value = $_GET[&#38;#39;email3&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>alanbrown on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6315</link>
<pubDate>Mon, 22 Jun 2009 20:47:05 +0000</pubDate>
<dc:creator>alanbrown</dc:creator>
<guid isPermaLink="false">6315@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Brilliant...I used the first suggested soluton and its great..however...can I do this for more than one form ID. I tried to enter another line of code identical to one that worked and I got an error, unexpected $ send I think.. SO how do I do this for two seperate forms with different ID's?&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6312</link>
<pubDate>Mon, 22 Jun 2009 17:22:18 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">6312@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes, basically you need to apply this modification:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/dynamic-content-php?replies=20&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/dynamic-content-php?replies=20&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;or this:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/adding-hidden-variables-to-machforms?replies=2&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/adding-hidden-variables-to-machforms?replies=2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In your case, simply pass the referring URL as the parameter to your form.&#60;/p&#62;
&#60;p&#62;If you are having difficulty, send us an email and let us know some example URL of your current page. We'll help you there.
&#60;/p&#62;</description>
</item>
<item>
<title>alanbrown on "Referring URL in form"</title>
<link>https://www.machform.com/forums/topic/referring-url-in-form#post-6310</link>
<pubDate>Mon, 22 Jun 2009 15:44:38 +0000</pubDate>
<dc:creator>alanbrown</dc:creator>
<guid isPermaLink="false">6310@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hope I explain this properly.....I have to design a simple booking for a holiday lettngs site. No problem there, however to avoid having to have a seperate form foreach property is there a way of using one form but populating a field with the name of the property which would be taken from the referring URL for example, or is there another way? The customers receiving this booking form could be simply sent a link of some sort so long as when mu customer receives the booking form he knows which property is being booked.  hope I have made this clear...if not then tell me and I will try again. Thanking you all in advance.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
