<?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: Show Success Message &#038; Open Redirect in New Window</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Show Success Message &#038; Open Redirect in New Window</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 14:43:56 +0000</pubDate>

<item>
<title>redityo on "Show Success Message &#038; Open Redirect in New Window"</title>
<link>https://www.machform.com/forums/topic/show-success-message-038-open-redirect-in-new-window#post-13033</link>
<pubDate>Sat, 17 Dec 2011 15:19:50 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">13033@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You can use java script to make a delay before the page submitted to redirected url. First, you will need to put the redirect url into a session variable, you can use it like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$_SESSION[&#38;#39;redirect_session&#38;#39;] = &#38;quot;http://www.domain.com&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;if you refer to this page :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/dropdown-links?replies=11#post-9930&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/dropdown-links?replies=11#post-9930&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;you can change the code from :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;] = $redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$_SESSION[&#38;#39;redirect_session&#38;#39;]= $redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then edit your &#34;view-functions.php&#34; and go to around line 2244 for this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_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 ($form_id == 11 &#38;#38;&#38;#38; !empty($_SESSION[&#38;#39;redirect_session&#38;#39;])) {
	$custom_redirect_url = &#38;#39;&#38;lt;meta http-equiv=&#38;quot;Refresh&#38;quot; content=&#38;quot;5;url=&#38;#39;. $_SESSION[&#38;#39;redirect_session&#38;#39;] .&#38;#39;&#38;quot;&#38;gt;&#38;#39;;
	unset( $_SESSION[&#38;#39;redirect_session&#38;#39;]);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;after that, go to line 2254 and put this code around HEAD tag :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$custom_redirect_url}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;don't forget to change the id's with yours
&#60;/p&#62;</description>
</item>
<item>
<title>jakedonahue on "Show Success Message &#038; Open Redirect in New Window"</title>
<link>https://www.machform.com/forums/topic/show-success-message-038-open-redirect-in-new-window#post-13032</link>
<pubDate>Fri, 16 Dec 2011 05:11:37 +0000</pubDate>
<dc:creator>jakedonahue</dc:creator>
<guid isPermaLink="false">13032@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've searched the forum and found answers to each of these answers individually, but nothing that combines the two.&#60;/p&#62;
&#60;p&#62;I want the user to fill out my registration form, and after they click &#34;Submit,&#34; the &#34;SUCCESS!&#34; message will show for a few seconds before a new window opens up for them to pay through PayPal.&#60;/p&#62;
&#60;p&#62;What's more, I have already implemented the code that will redirect to a specific URL based on the selection in a multiple choice (if they select &#34;Pay Deposit&#34; it redirects to URL #1, if they select &#34;Pay Full Amount&#34; it redirects to URL #2).
&#60;/p&#62;</description>
</item>

</channel>
</rss>
