<?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: Removing '\' when autopopulating form fields</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Removing '\' when autopopulating form fields</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 04:42:44 +0000</pubDate>

<item>
<title>Trowar on "Removing '\' when autopopulating form fields"</title>
<link>https://www.machform.com/forums/topic/removing-when-autopopulating-form-fields#post-10646</link>
<pubDate>Fri, 15 Oct 2010 00:48:14 +0000</pubDate>
<dc:creator>Trowar</dc:creator>
<guid isPermaLink="false">10646@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Figured it out. I didn't relaise it was the server that was making the changes...&#60;/p&#62;
&#60;p&#62;$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id]['default_value'] = stripslashes($_GET['d']);
&#60;/p&#62;</description>
</item>
<item>
<title>Trowar on "Removing '\' when autopopulating form fields"</title>
<link>https://www.machform.com/forums/topic/removing-when-autopopulating-form-fields#post-10644</link>
<pubDate>Thu, 14 Oct 2010 23:17:02 +0000</pubDate>
<dc:creator>Trowar</dc:creator>
<guid isPermaLink="false">10644@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a form using the advanced integrated code.&#60;/p&#62;
&#60;p&#62;In my view-functions.php I use the below code to auto-poulate a field&#60;/p&#62;
&#60;p&#62;if  ( $_GET['m'] &#38;lt;= 3 &#38;#38;&#38;#38; $_GET['m'] &#38;gt;= 1 &#38;#38;&#38;#38; $element-&#38;gt;id == 5) {&#60;br /&#62;
$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id]['default_value'] = $_GET['d'];&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;If $_GET['d'] is equal to &#34;l'ecran&#34; then the field is populated with &#34;l\'ecran&#34;.&#60;/p&#62;
&#60;p&#62;How to I cange my php code to import the value without adding the backslash in the process?&#60;/p&#62;
&#60;p&#62;Many Thanks,&#60;/p&#62;
&#60;p&#62;Peter.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
