<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Two submit buttons send form to two different pages</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 23:07:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: aditya</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-641230</link>
		<dc:creator>aditya</dc:creator>
		<pubDate>Thu, 12 Nov 2009 18:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-641230</guid>
		<description>Hi every one Following is the situation I want a solution for,

-I have a form whose contents are forwarded to a mailer program hosted on a server which sends out emails. So basically the form data is submitted to one Mailer page (I have no control over the mailer program).

-After the form has been submitted the mailer program redirects to a default page or the &quot;return &quot; page specified by me..again redirects no matter what I have no control over it...

-Now instead of being redirected to a page I want the form contents to be submitted to another php page which will appear after the form has been submitted to the mailer page and display the contents of the form originally submitted.

Basically I want to submit to 2 different pages I know thats possible but I do not know how to get around the redirection from mailer page.

I thought of having the second php page to be the redirect page with all form data sent in query string however data fields are too many to send over get.
Is there anyway around this in javascript?
Its very complex to explain..I hope some one can help

I hope following crude visualisation helps
currently

submit form to-------------&gt;Mailer page (It redirects to any page specified)
form
to
&#124;
&#124;
&#124;-------&gt;Page2.php (Want this to appear after form has been submitted to mailer page but mailer page redirects..)

Regards,
Aditya</description>
		<content:encoded><![CDATA[<p>Hi every one Following is the situation I want a solution for,</p>
<p>-I have a form whose contents are forwarded to a mailer program hosted on a server which sends out emails. So basically the form data is submitted to one Mailer page (I have no control over the mailer program).</p>
<p>-After the form has been submitted the mailer program redirects to a default page or the &#034;return &#034; page specified by me..again redirects no matter what I have no control over it&#8230;</p>
<p>-Now instead of being redirected to a page I want the form contents to be submitted to another php page which will appear after the form has been submitted to the mailer page and display the contents of the form originally submitted.</p>
<p>Basically I want to submit to 2 different pages I know thats possible but I do not know how to get around the redirection from mailer page.</p>
<p>I thought of having the second php page to be the redirect page with all form data sent in query string however data fields are too many to send over get.<br />
Is there anyway around this in javascript?<br />
Its very complex to explain..I hope some one can help</p>
<p>I hope following crude visualisation helps<br />
currently</p>
<p>submit form to&#8212;&#8212;&#8212;&#8212;-&gt;Mailer page (It redirects to any page specified)<br />
form<br />
to<br />
|<br />
|<br />
|&#8212;&#8212;-&gt;Page2.php (Want this to appear after form has been submitted to mailer page but mailer page redirects..)</p>
<p>Regards,<br />
Aditya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arabicdreamer</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-635246</link>
		<dc:creator>arabicdreamer</dc:creator>
		<pubDate>Tue, 07 Jul 2009 11:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-635246</guid>
		<description>Thanks a lot for this tip. IT is still helpful :) Thanks a lot</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this tip. IT is still helpful <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derringer83</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-600628</link>
		<dc:creator>derringer83</dc:creator>
		<pubDate>Tue, 07 Oct 2008 01:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-600628</guid>
		<description>Its amazing how you posted this YEARS ago... but it still helped me instantly. Thankyou.</description>
		<content:encoded><![CDATA[<p>Its amazing how you posted this YEARS ago&#8230; but it still helped me instantly. Thankyou.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ag3nt42</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-576584</link>
		<dc:creator>ag3nt42</dc:creator>
		<pubDate>Mon, 02 Jun 2008 15:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-576584</guid>
		<description>I would use the same js functions only in php that way you don&#039;t need the users browsers to have JS enabled.. I came across this looking for...A way to have a form submitted to two different pages aswell.. however with my situation I need one submit to go to the same page as the form and the other submit to go to another one so serverside may not work for me. I will probably have to hack it. But what don&#039;t we have to hack these days.  Def go with php solution for this.
I do not have time to write an example but if u use your brain you&#039;ll think of something.</description>
		<content:encoded><![CDATA[<p>I would use the same js functions only in php that way you don&#039;t need the users browsers to have JS enabled.. I came across this looking for&#8230;A way to have a form submitted to two different pages aswell.. however with my situation I need one submit to go to the same page as the form and the other submit to go to another one so serverside may not work for me. I will probably have to hack it. But what don&#039;t we have to hack these days.  Def go with php solution for this.<br />
I do not have time to write an example but if u use your brain you&#039;ll think of something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bakelite Gal</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-545632</link>
		<dc:creator>Bakelite Gal</dc:creator>
		<pubDate>Sun, 20 Jan 2008 13:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-545632</guid>
		<description>Does anyone have the full code for this I have tried it and I cant get it to work :-( Please help.</description>
		<content:encoded><![CDATA[<p>Does anyone have the full code for this I have tried it and I cant get it to work <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-492080</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Fri, 29 Dec 2006 21:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-492080</guid>
		<description>Also -I saw the guy&#039;s comment after that one - but I have no idea what he&#039;s talking about. I tried his code exactly, and the best I get is forwarded to paypals main site - but not their shopping cart page like you would if you submited the form...</description>
		<content:encoded><![CDATA[<p>Also -I saw the guy&#039;s comment after that one &#8211; but I have no idea what he&#039;s talking about. I tried his code exactly, and the best I get is forwarded to paypals main site &#8211; but not their shopping cart page like you would if you submited the form&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-492074</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Fri, 29 Dec 2006 21:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-492074</guid>
		<description>Was about to start playing around with this and noticed in the code - it won&#039;t FORWARD you to that page you need to submit the Post data to (in my case Paypal). Looked in the comments and found &lt;a href=&quot;http://www.zend.com/zend/spotlight/mimocsumissions.php?article=mimocsumissions&amp;kind=sl&amp;id=6345&amp;open=1&amp;anc=0&amp;view=1#notes&quot; rel=&quot;nofollow&quot;&gt;the same old story again&lt;/a&gt;:

&quot;Well I searched all over the web and it is said that the problem is with html not allowing a redirect with post
vars.
The only solution I have found is to use javascript to post a dynamically generated form using &lt;body
onload=&quot;postform(formname)&quot;&gt;
This works but requires the users browser to have javascript switched on.
Sigh.&quot;</description>
		<content:encoded><![CDATA[<p>Was about to start playing around with this and noticed in the code &#8211; it won&#039;t FORWARD you to that page you need to submit the Post data to (in my case Paypal). Looked in the comments and found <a href="http://www.zend.com/zend/spotlight/mimocsumissions.php?article=mimocsumissions&#038;kind=sl&#038;id=6345&#038;open=1&#038;anc=0&#038;view=1#notes" rel="nofollow">the same old story again</a>:</p>
<p>&#034;Well I searched all over the web and it is said that the problem is with html not allowing a redirect with post<br />
vars.<br />
The only solution I have found is to use javascript to post a dynamically generated form using <body onload="postform(formname)"><br />
This works but requires the users browser to have javascript switched on.<br />
Sigh.&#034;</body></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-492019</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Fri, 29 Dec 2006 16:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-492019</guid>
		<description>Interesting... I&#039;ll give that a whirl and see if it does the trick! :) (After I finish fighting with my shopping cart project. LOL) Thanks!</description>
		<content:encoded><![CDATA[<p>Interesting&#8230; I&#039;ll give that a whirl and see if it does the trick! <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (After I finish fighting with my shopping cart project. LOL) Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Corban</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-491947</link>
		<dc:creator>Jennifer Corban</dc:creator>
		<pubDate>Fri, 29 Dec 2006 01:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-491947</guid>
		<description>I haven&#039;t tried this, but I googled just out of curiosity to see if there was a way to &#039;fake&#039; a post submission with php and found this which seems like it should do it. 
http://www.zend.com/zend/spotlight/mimocsumissions.php?days=10000&amp;f_id=mimocsumissions&amp;mode=&amp;kind=sl&amp;article=mimocsumissions</description>
		<content:encoded><![CDATA[<p>I haven&#039;t tried this, but I googled just out of curiosity to see if there was a way to &#039;fake&#039; a post submission with php and found this which seems like it should do it.<br />
<a href="http://www.zend.com/zend/spotlight/mimocsumissions.php?days=10000&amp;f_id=mimocsumissions&amp;mode=&amp;kind=sl&amp;article=mimocsumissions" rel="nofollow">http://www.zend.com/zend/spotlight/mimocsumissions.php?days=10000&amp;f_id=mimocsumissions&amp;mode=&amp;kind=sl&amp;article=mimocsumissions</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/comment-page-1/#comment-491792</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Thu, 28 Dec 2006 02:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-491792</guid>
		<description>Well, here&#039;s the thing, I&#039;m not 100% sure, but I believe that Paypal needs that information sent to it as &quot;POST&quot; - and as far as I can tell, there&#039;s no way to submit POST header information WITHOUT submitting a form. Anything I&#039;ve seen suggests sending it to a form that auto submits itself (with javascript)... which doesn&#039;t solve the problem of trying to create a form that doesn&#039;t need it. :)</description>
		<content:encoded><![CDATA[<p>Well, here&#039;s the thing, I&#039;m not 100% sure, but I believe that Paypal needs that information sent to it as &#034;POST&#034; &#8211; and as far as I can tell, there&#039;s no way to submit POST header information WITHOUT submitting a form. Anything I&#039;ve seen suggests sending it to a form that auto submits itself (with javascript)&#8230; which doesn&#039;t solve the problem of trying to create a form that doesn&#039;t need it. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.441 seconds -->
