YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

need to set up custom error page Options
jpwebdesigner
#1 Posted : Thursday, March 10, 2005 2:31:44 PM
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?
Sponsor  
 
Andrew Chang
#2 Posted : Thursday, March 10, 2005 3:08:59 PM
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.net
Web Design & Scripting: http://scorpionsystems.net
Web & Image Hosting includes global SSL: http://scorpionwebhosting.com
Photographer Gallery Software: http://Photo-Seller.com
Become 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
jpwebdesigner
#3 Posted : Thursday, March 10, 2005 3:38:42 PM
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">
Andrew Chang
#4 Posted : Thursday, March 10, 2005 4:11:58 PM
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.net
Web Design & Scripting: http://scorpionsystems.net
Web & Image Hosting includes global SSL: http://scorpionwebhosting.com
Photographer Gallery Software: http://Photo-Seller.com
Become 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
Andrew Chang
#5 Posted : Thursday, March 10, 2005 4:18:40 PM
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.net
Web Design & Scripting: http://scorpionsystems.net
Web & Image Hosting includes global SSL: http://scorpionwebhosting.com
Photographer Gallery Software: http://Photo-Seller.com
Become 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
jpwebdesigner
#6 Posted : Thursday, March 10, 2005 5:01:01 PM
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.net
Web Design & Scripting: http://scorpionsystems.net
Web & Image Hosting includes global SSL: http://scorpionwebhosting.com
Photographer Gallery Software: http://Photo-Seller.com
Become 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">
Andrew Chang
#7 Posted : Thursday, March 10, 2005 5:05:51 PM
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.net
Web Design & Scripting: http://scorpionsystems.net
Web & Image Hosting includes global SSL: http://scorpionwebhosting.com
Photographer Gallery Software: http://Photo-Seller.com
Become 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
jpwebdesigner
#8 Posted : Thursday, March 10, 2005 5:12:45 PM
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.net
Web Design & Scripting: http://scorpionsystems.net
Web & Image Hosting includes global SSL: http://scorpionwebhosting.com
Photographer Gallery Software: http://Photo-Seller.com
Become 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">
Andrew Chang
#9 Posted : Thursday, March 10, 2005 5:26:37 PM
Rank: Starting Member

Groups: Registered

Joined: 1/10/2003
Posts: 738
Location: ,
You are very welcome

Andrew
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.302 seconds.