<?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: passing zip code from another form</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: passing zip code from another form</description>
<language>en</language>
<pubDate>Tue, 05 May 2026 07:38:26 +0000</pubDate>

<item>
<title>rssolo23 on "passing zip code from another form"</title>
<link>https://www.machform.com/forums/topic/passing-zip-code-from-another-form#post-8232</link>
<pubDate>Tue, 29 Dec 2009 03:14:08 +0000</pubDate>
<dc:creator>rssolo23</dc:creator>
<guid isPermaLink="false">8232@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Excellent, that's exactly what I needed, and it worked.  Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "passing zip code from another form"</title>
<link>https://www.machform.com/forums/topic/passing-zip-code-from-another-form#post-8228</link>
<pubDate>Mon, 28 Dec 2009 13:40:54 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">8228@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I think the wrong code on this line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element-&#38;gt;default_value = $_SESSION[&#38;#39;zipcode&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Try to go around line 1401 for this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and put these code above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_SESSION[&#38;#39;zipcode&#38;#39;]) &#38;#38;&#38;#38; empty($element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_5&#38;#39;][&#38;#39;default_value&#38;#39;])) {
	$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_5&#38;#39;][&#38;#39;default_value&#38;#39;] = $_SESSION[&#38;#39;zipcode&#38;#39;]
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>rssolo23 on "passing zip code from another form"</title>
<link>https://www.machform.com/forums/topic/passing-zip-code-from-another-form#post-8225</link>
<pubDate>Sun, 27 Dec 2009 11:41:29 +0000</pubDate>
<dc:creator>rssolo23</dc:creator>
<guid isPermaLink="false">8225@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'm trying to pass a zip code from another page onto the MachForm zip code field (strongly preferred within the pre-defined address).  I've created the php session and passed the value from another page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://my.website.com/contact.php?zipcode=90210&#34; rel=&#34;nofollow&#34;&#62;http://my.website.com/contact.php?zipcode=90210&#60;/a&#62; (for example)&#60;/p&#62;
&#60;p&#62;The header on my contact.php form is:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
  session_start();&#60;br /&#62;
  $_SESSION['zipcode'] = $_GET['zipcode'];&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;The code I'm placing on my view-fuctions.php (somewhere around line 1390):&#60;/p&#62;
&#60;p&#62;if (!empty($_SESSION['zipcode']) &#38;#38;&#38;#38;  empty($element-&#38;gt;populated_value['element_'.$element-id.'_5']['default_value'])) {&#60;br /&#62;
			$element-&#38;gt;default_value = $_SESSION['zipcode'];&#60;br /&#62;
		}			&#60;/p&#62;
&#60;p&#62;I know i'm probably pasting the wrong code in the view-functions.php (and noticed that the zip code field doesn't have a default_value within the element associated to it), but I'm hoping you're able to provide me with an easy fix.  Thank you!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
