Using FrontPage form buttons to PayPal...

B

Broncobil

Hi all... my question is about using FrontPage's form atributes to give size
and color choices, then open this information in PayPal's "add to cart"
window. (page example: http://www.tripletdog.com/products2.htm)

FrontPage form code:

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p align="left" style="margin-top: 0; margin-bottom: 0">
<select size="1" name="Color">
<option selected>Choose Color</option>
<option value="Blue">Blue</option>
<option value="Yellow">Yellow</option>
<option value="Leather">Leather</option>
</select></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<select size="1" name="Size">
<option selected>Choose Size</option>
<option>19&quot;</option>
<option>21&quot;</option>
<option>23&quot;</option>
</select><input type="submit" value="Submit" name="B3"><input
type="reset" value="Reset" name="B4"></p>
</form>

Can instructions be added that will tell the submit button (as on the
sample page) to send this information to open a paypal window, such as the
"add to cart" button at the top right of the page:

This first "add to cart" button, I just used an image and added a hyperlink
to it and kept working with it until it worked... and it does work well.

My reason for wanting to use this method is because of the large amount of
page area required by PayPal's button (3 lines of space) and as you can see,
I have everthing on single lines for most of the site.

Hyperlink code I built (without knowing anything about what I was doing...
and still don't):

<a title="Add to shopping cart" target="_blank"
href="https://www.paypal.com/cart/add=1&b...ight=400,scrollbars,location,resizable,status">
<img border="0" src="images/add.gif" width="38" height="16"></a> </p>

PayPal's code to do the same:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="image" src="http://tripletdog.com/images/add.gif" border="0"
name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="collar">
<input type="hidden" name="item_number" value="cd1">
<input type="hidden" name="amount" value="6.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
</form>

I feel that if only I knew a little html, I could get this to work (boy...
what a wonderful application, this FrontPage). Is it possible that someone
can help me here... with advice or some code direction.

Many thanks... Luther Moon
(e-mail address removed)
 
T

Thomas A. Rowe

You have to format the form in the manner required by PayPal for their buy now button. See the
following example, do a view source:

http://www.ecom-data.com/PayPal/wp/C999994.asp?P=675
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
B

Broncobil

I'll try working with that,

Luther


Thomas A. Rowe said:
You have to format the form in the manner required by PayPal for their buy
now button. See the following example, do a view source:

http://www.ecom-data.com/PayPal/wp/C999994.asp?P=675
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top