<?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: Open redirect URL in same iFrame</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Open redirect URL in same iFrame</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:32:13 +0000</pubDate>

<item>
<title>inkpotprinting on "Open redirect URL in same iFrame"</title>
<link>https://www.machform.com/forums/topic/open-redirect-url-in-same-iframe#post-16137</link>
<pubDate>Wed, 03 Oct 2012 15:16:11 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16137@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar&#60;/p&#62;
&#60;p&#62;I tried this and the redirect opens in the div the form code is in, and not the whole iFrame which is the desired behaviour. I tried changing self to parent in the code you suggested and that did what I wanted. &#60;/p&#62;
&#60;p&#62;Can you please consider having this behaviour as selectable from the GUI?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Open redirect URL in same iFrame"</title>
<link>https://www.machform.com/forums/topic/open-redirect-url-in-same-iframe#post-16130</link>
<pubDate>Wed, 03 Oct 2012 14:15:46 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">16130@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ah..yes, this would affect all of your form. However, there is a simple modification to only apply this code to a particular form.&#60;/p&#62;
&#60;p&#62;So let say you have a form with this URL:&#60;br /&#62;
&#60;a href=&#34;http://www.example.com/machform/view.php?id=1200&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/machform/view.php?id=1200&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;that means your form is having id number 1200.&#60;/p&#62;
&#60;p&#62;You need to modify your embed.php file, around line 70 as above, to be like this instead:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($input_array[&#38;#39;form_id&#38;#39;] == 1200){
   echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;self.location = &#38;#39;{$submit_result[&#38;#39;form_redirect&#38;#39;]}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;
}else{
   echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;top.location = &#38;#39;{$submit_result[&#38;#39;form_redirect&#38;#39;]}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that would limit the modification to one particular form. Change the above id number with your own form id number.
&#60;/p&#62;</description>
</item>
<item>
<title>inkpotprinting on "Open redirect URL in same iFrame"</title>
<link>https://www.machform.com/forums/topic/open-redirect-url-in-same-iframe#post-16117</link>
<pubDate>Tue, 02 Oct 2012 15:09:06 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16117@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you for your reply Yuniar. I have 5 different forms on this website and am only using one of them in an iFrame, will editing this file change the behaviour of all of the forms?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Open redirect URL in same iFrame"</title>
<link>https://www.machform.com/forums/topic/open-redirect-url-in-same-iframe#post-16089</link>
<pubDate>Sat, 29 Sep 2012 18:20:38 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">16089@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You need to edit your &#34;embed.php&#34; file, search around line 70 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;top.location = &#38;#39;{$submit_result[&#38;#39;form_redirect&#38;#39;]}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;change it to become:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;self.location = &#38;#39;{$submit_result[&#38;#39;form_redirect&#38;#39;]}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>inkpotprinting on "Open redirect URL in same iFrame"</title>
<link>https://www.machform.com/forums/topic/open-redirect-url-in-same-iframe#post-16078</link>
<pubDate>Fri, 28 Sep 2012 15:59:36 +0000</pubDate>
<dc:creator>inkpotprinting</dc:creator>
<guid isPermaLink="false">16078@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Our form is in an iFrame and I would like the redirect URL to open in the iFrame and not the whole browser window. The instructions I found by searching the forum relate to the previous version, and we're using the latest one. Adding target=&#34;_self&#34; to the end of the redirect URL didn't work. Can you help?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
