OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Can I incorporate a result on a confirm page into an "IF...then" statement?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Can I incorporate a result on a confirm page into an "IF...then" statement?
Page: [1]
 
 
hzarabet

 

Posts: 1573
From: New Milford CT USA
Status: offline

 
Can I incorporate a result on a confirm page into an &q... - 3/25/2001 20:09:00   
Hi Spooky:

I have a form which I submit and a custom confirmation page comes up.

One of the results on the confirm page is for the name of a promoter. Here is what I what to do. I want to build an If...then statement where any promoter whose name has an asterisk in front of it brings up a different PayPal HTML code from a promoter without the asterisk:


<%If (the promoters name on the confirm results) = "*%" then "PayPal HTML 1" else "PayPal HTML 2" end if%>

Am I going out of bounds with this?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

Spooky

 

Posts: 26723
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Can I incorporate a result on a confirm page into a... - 3/25/2001 16:51:00   
quote:
Originally posted by hzarabet:

Am I going out of bounds with this?


Possibly, as the custom (FP) confirmation fields cant be read by asp. Im assuming thats what you are using?


(in reply to hzarabet)
hzarabet

 

Posts: 1573
From: New Milford CT USA
Status: offline

 
RE: Can I incorporate a result on a confirm page into a... - 3/25/2001 17:49:00   
Yep, FP custom confirm. Back to the drawing board

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
hzarabet

 

Posts: 1573
From: New Milford CT USA
Status: offline

 
RE: Can I incorporate a result on a confirm page into a... - 3/25/2001 19:16:00   
Here is what I came up with now. Depending on the company name one of two PayPal buttons will come up. Unfortunately, the code is giving me errors!!!

<%If FP_FieldVal(fp_rs,"x_company")= "*%" then
response.write "<!-- Begin PayPal Logo -->
<FORM ACTION="https://secure.paypal.com/cgi-bin/webscr" METHOD="POST">
<INPUT TYPE="hidden" NAME="cmd" VALUE="_xclick">
<INPUT TYPE="hidden" NAME="business" VALUE="howard@signingshotline.com">
<INPUT TYPE="hidden" NAME="return" VALUE="http://www.signingshotline.com">
<INPUT TYPE="hidden" NAME="undefined_quantity" VALUE="1">
<INPUT TYPE="hidden" NAME="item_name" VALUE="Mail order listing - Comarketer">
<INPUT TYPE="hidden" NAME="amount" VALUE="4.99"><INPUT TYPE="image" SRC="http://images.paypal.com/images/x-click-but5.gif" NAME="submit" ALT="Make payments with PayPal - it's fast, free and secure!">
</FORM>
<!-- End PayPal Logo -->"
else
response.write "<!-- Begin PayPal Logo -->
<FORM ACTION="https://secure.paypal.com/cgi-bin/webscr" METHOD="POST">
<INPUT TYPE="hidden" NAME="cmd" VALUE="_xclick">
<INPUT TYPE="hidden" NAME="business" VALUE="howard@signingshotline.com">
<INPUT TYPE="hidden" NAME="return" VALUE="http://www.signingshotline.com">
<INPUT TYPE="hidden" NAME="undefined_quantity" VALUE="1">
<INPUT TYPE="hidden" NAME="item_name" VALUE="Mail order listing">
<INPUT TYPE="hidden" NAME="amount" VALUE="9.99"><INPUT TYPE="image" SRC="http://images.paypal.com/images/x-click-but5.gif" NAME="submit" ALT="Make payments with PayPal - it's fast, free and secure!">
</FORM>
<!-- End PayPal Logo -->"
end if%>

I've tried ' and " and [] and everything but the correct way to write this

This should be do-able, right Spooky?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
hzarabet

 

Posts: 1573
From: New Milford CT USA
Status: offline

 
RE: Can I incorporate a result on a confirm page into a... - 3/27/2001 15:32:00   
Forget all the above!! An IF....then statement for a price will go DIRECTLY into the PayPal button it self. It works!

PayPal could be a good stop gap between nothing a full-blown shopping cart for sites with a few things top sell.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26723
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Can I incorporate a result on a confirm page into a... - 3/27/2001 23:20:00   
We have a PayPal expert!
If I ever use it, Ill know where to go to

(in reply to hzarabet)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Can I incorporate a result on a confirm page into an "IF...then" statement?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts