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"</option>
<option>21"</option>
<option>23"</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)
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"</option>
<option>21"</option>
<option>23"</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)