|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/2/2005 Posts: 13 Location: ,
|
i need to set up a page that customers are redirected to if there is an error in one of the fields they filled out. for example, in the amount field, if they entered $12j.00 - instead of directing them to the paypayl error detected page, they will go back to the original website OR if they click the continue button on the paypal error detected page, they go back to the donate page. can this be done?
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/10/2003 Posts: 738 Location: ,
|
You would need to validate the form before posting it. example function Validator(theForm) { if (theForm.amount.value == "") { alert("Please enter a value for the \"Amount\" field."); theForm.amount.focus(); return (false); } return (true); } //--></script> <form action="post to script" method="post" onsubmit ="return Validator(this)"> <input size="4" name="amount"> <input type="submit" value="Go to check out"> </form> Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/2/2005 Posts: 13 Location: ,
|
the only issue with using the validator is that there are two radio buttons to choose from for an amount, so i can't make both of them required values. is there a way to make the continue link on the paypal error page point back to the donate page?
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by jpwebdesigner [br]i need to set up a page that customers are redirected to if there is an error in one of the fields they filled out. for example, in the amount field, if they entered $12j.00 - instead of directing them to the paypayl error detected page, they will go back to the original website OR if they click the continue button on the paypal error detected page, they go back to the donate page. can this be done? <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/10/2003 Posts: 738 Location: ,
|
You are 100% correct in your case you would have to validate texta only if amount=texta It will require some extra coding to do this. What I gave you was a basic example not ment for use with your code. Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/10/2003 Posts: 738 Location: ,
|
the answer to your second question Can you make the continue link direct back to your site is yes &cancel_return=http://partners-charity.net/donate_new_address.html Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/2/2005 Posts: 13 Location: ,
|
ok i did this, but it is not working... <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by Andrew Chang[br]the answer to your second question Can you make the continue link direct back to your site is yes &cancel_return=http://partners-charity.net/donate_new_address.html Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/10/2003 Posts: 738 Location: ,
|
You may not have uploaded the change because it is not there you have to add that bit in the URL in the script. Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/2/2005 Posts: 13 Location: ,
|
oops! it's working now thanks. <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by jpwebdesigner[br]ok i did this, but it is not working... <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by Andrew Chang[br]the answer to your second question Can you make the continue link direct back to your site is yes &cancel_return=http://partners-charity.net/donate_new_address.html Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/10/2003 Posts: 738 Location: ,
|
You are very welcome
Andrew
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.302 seconds.