HighDots Forums  

How to attach Paypal button form to Hotspot?

Website Design comp.infosystems.www.authoring.site-design


Discuss How to attach Paypal button form to Hotspot? in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J
 
Posts: n/a

Default How to attach Paypal button form to Hotspot? - 10-28-2004 , 05:28 PM






Hi,

I'm mostly a newb at this. I'm working in Dreamweaver 4.

I need Paypal "Add to Cart" etc buttons on my pages, but because of the way
I've made the pages, I need to attach the form submission to hotspots on my
image maps rather than using the link to download the button graphic from
the Paypal server.

Also, I've emailed Paypal to check their rules don't prevent me from doing
it this way, but since they've already misinformed me about 3 other issues:
does anyone know what their policy is on this?


EXAMPLE CODE:

button code (provided by Paypal)

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="example (AT) example (DOT) com">
<input type="image" src="https://www.paypal.com/images/view_cart.gif"
border="0" name="submit" alt="Make payments with PayPal - it's fast, free
and secure!">
<input type="hidden" name="display" value="1">
</form>



hotspot code-

<div align="center"><img src="examplepageimage.jpg" width="702" height="421"
border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="637,395,699,420" href="about.htm">
</map>
</div>



So, to clarify- I need to combine the two above so that the hotspot
activates the Paypal form rather than the link to "about.htm"

Could someone show me the correct syntax for this, or even better, explain
how to add the form code to the hotspot in Dreamweaver? I've looked for ages
online but can't find the specific information so help would be much
appreciated!

Thanks

J




Reply With Quote
  #2  
Old   
Adrienne
 
Posts: n/a

Default Re: How to attach Paypal button form to Hotspot? - 10-29-2004 , 02:18 AM






Gazing into my crystal ball I observed "J" <idriv1 (AT) hotmail (DOT) com> writing
in news:clro9d$jv7$1 (AT) hercules (DOT) btinternet.com:

Quote:
Hi,

I'm mostly a newb at this. I'm working in Dreamweaver 4.

I need Paypal "Add to Cart" etc buttons on my pages, but because of the
way I've made the pages, I need to attach the form submission to
hotspots on my image maps rather than using the link to download the
button graphic from the Paypal server.

Also, I've emailed Paypal to check their rules don't prevent me from
doing it this way, but since they've already misinformed me about 3
other issues: does anyone know what their policy is on this?


EXAMPLE CODE:

button code (provided by Paypal)

form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post"> <input type="hidden" name="cmd" value="_cart"
input type="hidden" name="business" value="example (AT) example (DOT) com"> <input
type="image" src="https://www.paypal.com/images/view_cart.gif"
border="0" name="submit" alt="Make payments with PayPal - it's fast,
free and secure!"
input type="hidden" name="display" value="1"> </form



hotspot code-

div align="center"><img src="examplepageimage.jpg" width="702"
height="421"
border="0" usemap="#Map"> <map name="Map"> <area shape="rect"
coords="637,395,699,420" href="about.htm"> </map> </div



So, to clarify- I need to combine the two above so that the hotspot
activates the Paypal form rather than the link to "about.htm"

Could someone show me the correct syntax for this, or even better,
explain how to add the form code to the hotspot in Dreamweaver? I've
looked for ages online but can't find the specific information so help
would be much appreciated!

Thanks

J




You can't do what you want because you need to use a form, not an image
map. The reason is that your page needs to send hidden input values to the
Paypal server. A link does not send the information for Paypal's scripts
to process. The only way you might be able to do it is if Paypal will
accept GET method instead of POST. GET is less secure because the
information appears in the address bar.

<area shape="rect" coords="637,395,699,420"
href="http://www.example.com/somescript?somevariable=somevalue"> would be
the syntax you're looking for to pass information using the GET method.

--
Adrienne Boswell
Please respond to the group so others can share


Reply With Quote
  #3  
Old   
Neal
 
Posts: n/a

Default Re: How to attach Paypal button form to Hotspot? - 10-29-2004 , 02:27 AM



On Thu, 28 Oct 2004 21:28:14 +0000 (UTC), J <idriv1 (AT) hotmail (DOT) com> wrote:

Quote:
Hi,

I'm mostly a newb at this. I'm working in Dreamweaver 4.

I need Paypal "Add to Cart" etc buttons on my pages, but because of the
way
I've made the pages, I need to attach the form submission to hotspots on
my
image maps rather than using the link to download the button graphic from
the Paypal server.
Might I suggest that this means you've mis-designed the page?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.