<?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: Clicking 'back' Button Removes Entered Data</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Clicking 'back' Button Removes Entered Data</description>
<language>en</language>
<pubDate>Wed, 03 Jun 2026 19:20:42 +0000</pubDate>

<item>
<title>celica on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5387</link>
<pubDate>Tue, 07 Apr 2009 01:34:30 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5387@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for taking the time to check and suggest a change to my edited code, redito, all is well again now.&#60;br /&#62;
Regards&#60;br /&#62;
Alan
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5371</link>
<pubDate>Mon, 06 Apr 2009 13:58:02 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5371@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I see ...I seems the problem come from this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//post session url selected
if($element-&#38;gt;id == 37){
$element-&#38;gt;default_value = $_GET[&#38;quot;domain&#38;quot;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It will always set your text field in form 37 with &#34;GET&#34; variable and since you do not have GET variable in your URL when press a back button, It will filled with blank value.&#60;br /&#62;
To fix it, try to replace those code with this one :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (($element-&#38;gt;id == 37) &#38;#38;&#38;#38; ($element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id][&#38;#39;default_value&#38;#39;] == &#38;#39;&#38;#39;)){
	$element-&#38;gt;default_value = $_GET[&#38;quot;domain&#38;quot;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and I think you can consider to use a form id in your condition, so the code will be work on specific form only.
&#60;/p&#62;</description>
</item>
<item>
<title>celica on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5355</link>
<pubDate>Sun, 05 Apr 2009 00:28:39 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5355@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Redito.&#60;/p&#62;
&#60;p&#62;I have tried the session code at the top of my order.php page, but unfortunately that doesn't change the scenario, &#60;/p&#62;
&#60;p&#62;NB I did edit the 'single line text' code in the &#34;view-functions.php&#34; file (from line 10) as below, in order to autofill element_37 single line text with a variable from my string.&#60;/p&#62;
&#60;p&#62;I would be most grateful if possible you could perhaps see a conflict with my code there...?&#60;/p&#62;
&#60;p&#62;//Single Line Text&#60;br /&#62;
	function display_text($element){&#60;/p&#62;
&#60;p&#62;		//check for error&#60;br /&#62;
		$error_class = '';&#60;br /&#62;
		$error_message = '';&#60;br /&#62;
		$span_required = '';&#60;br /&#62;
		$guidelines = '';&#60;/p&#62;
&#60;p&#62;		if(!empty($element-&#38;gt;is_error)){&#60;br /&#62;
			$error_class = 'class=&#34;error&#34;';&#60;br /&#62;
			$error_message = &#34;&#38;lt;p class=\&#34;error\&#34;&#38;gt;{$element-&#38;gt;error_message}&#38;lt;/p&#38;gt;&#34;;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		//check for required&#60;br /&#62;
		if($element-&#38;gt;is_required){&#60;br /&#62;
			$span_required = &#34;&#38;lt;span id=\&#34;required_{$element-&#38;gt;id}\&#34; class=\&#34;required\&#34;&#38;gt;*&#38;lt;/span&#38;gt;&#34;;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		//check for guidelines&#60;br /&#62;
		if(!empty($element-&#38;gt;guidelines)){&#60;br /&#62;
			$guidelines = &#34;&#38;lt;p class=\&#34;guidelines\&#34; id=\&#34;guide_{$element-&#38;gt;id}\&#34;&#38;gt;&#38;lt;small&#38;gt;{$element-&#38;gt;guidelines}&#38;lt;/small&#38;gt;&#38;lt;/p&#38;gt;&#34;;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		//post session url selected&#60;br /&#62;
			if($element-&#38;gt;id == 37){&#60;br /&#62;
			$element-&#38;gt;default_value = $_GET[&#34;domain&#34;];&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;br /&#62;
		&#38;lt;li id=&#34;li_{$element-&#38;gt;id}&#34; {$error_class}&#38;gt;&#60;br /&#62;
		&#38;lt;label class=&#34;description&#34; for=&#34;element_{$element-&#38;gt;id}&#34;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;&#60;br /&#62;
		&#38;lt;div&#38;gt;&#60;br /&#62;
			&#38;lt;input id=&#34;element_{$element-&#38;gt;id}&#34; name=&#34;element_{$element-&#38;gt;id}&#34; class=&#34;element text {$element-&#38;gt;size}&#34; type=&#34;text&#34; value=&#34;{$element-&#38;gt;default_value}&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;/div&#38;gt;{$guidelines} {$error_message}
		&#60;/li&#62;
&#60;p&#62;EOT;&#60;/p&#62;
&#60;p&#62;		return $element_markup;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	//Paragraph Text&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Alan Davies&#60;/p&#62;
&#60;p&#62;NB apologies for my erroneous posts below:
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5345</link>
<pubDate>Sat, 04 Apr 2009 10:02:12 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5345@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmmm It seems a session problem, could you try to put this code in the first line of your &#34;order.php&#34;  &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php session_start(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>celica on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5340</link>
<pubDate>Sat, 04 Apr 2009 03:45:25 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5340@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi redityo&#60;/p&#62;
&#60;p&#62;Thanks..... the url is&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.essentialwebs.co.uk/whois/order.php&#34; rel=&#34;nofollow&#34;&#62;http://www.essentialwebs.co.uk/whois/order.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Alan
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5326</link>
<pubDate>Fri, 03 Apr 2009 11:42:52 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5326@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Alan,&#60;/p&#62;
&#60;p&#62;Hmmm It should get the data back, could you give me your form url and do some test on it?
&#60;/p&#62;</description>
</item>
<item>
<title>celica on "Clicking 'back' Button Removes Entered Data"</title>
<link>https://www.machform.com/forums/topic/clicking-back-button-removes-entered-data#post-5322</link>
<pubDate>Fri, 03 Apr 2009 04:16:29 +0000</pubDate>
<dc:creator>celica</dc:creator>
<guid isPermaLink="false">5322@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Clicking 'back' button on my review page deletes all single line text field data on the entry form (but paragraph text remains!). &#60;/p&#62;
&#60;p&#62;Is this a known issue? (perhaps I have a bug in my script) or can there be a workaround? Thanks for any help...&#60;/p&#62;
&#60;p&#62;Regards Alan Davies
&#60;/p&#62;</description>
</item>

</channel>
</rss>
