<?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"
	>
<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>
	<pubDate>Sun, 20 Jul 2008 13:46:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: ag3nt42</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/#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'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'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'll think of something.</description>
		<content:encoded><![CDATA[<p>I would use the same js functions only in php that way you don&#8217;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&#8217;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&#8217;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-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-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's comment after that one - but I have no idea what he'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&#8217;s comment after that one - but I have no idea what he&#8217;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&#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-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'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="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"&gt;the same old story again&lt;/a&gt;:

"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="postform(formname)"&gt;
This works but requires the users browser to have javascript switched on.
Sigh."</description>
		<content:encoded><![CDATA[<p>Was about to start playing around with this and noticed in the code - it won&#8217;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>&#8220;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.&#8221;</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-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'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&#8217;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-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't tried this, but I googled just out of curiosity to see if there was a way to 'fake' 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&#38;f_id=mimocsumissions&#38;mode=&#38;kind=sl&#38;article=mimocsumissions</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried this, but I googled just out of curiosity to see if there was a way to &#8216;fake&#8217; 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-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's the thing, I'm not 100% sure, but I believe that Paypal needs that information sent to it as "POST" - and as far as I can tell, there's no way to submit POST header information WITHOUT submitting a form. Anything I've seen suggests sending it to a form that auto submits itself (with javascript)... which doesn't solve the problem of trying to create a form that doesn't need it. :)</description>
		<content:encoded><![CDATA[<p>Well, here&#8217;s the thing, I&#8217;m not 100% sure, but I believe that Paypal needs that information sent to it as &#8220;POST&#8221; - and as far as I can tell, there&#8217;s no way to submit POST header information WITHOUT submitting a form. Anything I&#8217;ve seen suggests sending it to a form that auto submits itself (with javascript)&#8230; which doesn&#8217;t solve the problem of trying to create a form that doesn&#8217;t need it. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></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-491777</link>
		<dc:creator>Jennifer Corban</dc:creator>
		<pubDate>Thu, 28 Dec 2006 01:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-491777</guid>
		<description>What about having 2 submit buttons, with different values.  The action would be processpayment.php then in processpayment.php you figure out what the value of the submit button was and based on that you can redirect to paypal if necessary, or else process the credit card payment yourself.</description>
		<content:encoded><![CDATA[<p>What about having 2 submit buttons, with different values.  The action would be processpayment.php then in processpayment.php you figure out what the value of the submit button was and based on that you can redirect to paypal if necessary, or else process the credit card payment yourself.</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-491342</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Sun, 24 Dec 2006 15:35:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-491342</guid>
		<description>That would mean making them select payment type before they even see a product... These buttons are on the product page. ie. They pick the product they want - on the product page they select how many they want - and then click a "buy now" type button... I wanted to reduce the number "steps" as much as possible, so a page after this asking them if they wanted to pay by credit card or paypal and then ANOTHER page (either paypal or the credit card payment info) wasn't something I wanted to do... If you have another way around it, I'm all ears...</description>
		<content:encoded><![CDATA[<p>That would mean making them select payment type before they even see a product&#8230; These buttons are on the product page. ie. They pick the product they want - on the product page they select how many they want - and then click a &#8220;buy now&#8221; type button&#8230; I wanted to reduce the number &#8220;steps&#8221; as much as possible, so a page after this asking them if they wanted to pay by credit card or paypal and then ANOTHER page (either paypal or the credit card payment info) wasn&#8217;t something I wanted to do&#8230; If you have another way around it, I&#8217;m all ears&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janos</title>
		<link>http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-send-form-to-two-different-pages/#comment-491304</link>
		<dc:creator>Janos</dc:creator>
		<pubDate>Sun, 24 Dec 2006 07:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2006/12/23/two-submit-buttons-submit-form-to-different-pages/#comment-491304</guid>
		<description>This will break accessibility (on browsers without JS). My advice would be to let the user select the payment method before displaying the form and the display the appropriate form (PayPal or credit card) depending on his decision.</description>
		<content:encoded><![CDATA[<p>This will break accessibility (on browsers without JS). My advice would be to let the user select the payment method before displaying the form and the display the appropriate form (PayPal or credit card) depending on his decision.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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