Well it works in IE at least. In firefox I get an error missing } in XML expression [Break on this error] document.form1.action = "PayPalTest.cfm";\n
> -----Original Message----- > From: Chad Gray [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2008 12:27 PM > To: CF-Talk > Subject: RE: paypal cart > > OH my... You can submit to two different action pages. The index.cfm page > is what is displayed because it was the last function run. > > > <script language<script language="javascript"> > function loginHandler1() > { > document.form1.action = "PayPalTest.cfm"; > document.form1.submit(); > } > > function loginHandler2() > { > document.form1.action = "index.cfm"; > document.form1.submit(); > } > </script> > > <form name="form1" action="" method="post" > > <p>Username: <input type="text" name="usercode" value=""></p> > <p>Password: <input type="password" name="password" value=""></p> > <p><input type="button" value="login" > onclick="loginHandler1();loginHandler2();"></p> > </form> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309874 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

