/    Sign up×
Community /Pin to ProfileBookmark

PayPAl shopping cart

I am trying to write a javascript code to replace the Pay Pal shopping cart button but am not getting anywhere fast.

The html code I am trying to replace is:

<form target=”paypal” action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_cart”>
<input type=”hidden” name=”display” value=”1″>
<input type=”hidden” name=”bn” value=”wa_dw_3.0.4″>
<input type=”hidden” name=”business” value=”[email protected]“>
<input type=”image” name=”submit” src=”http://images.paypal.com/images/view_cart_02.gif” border=”0″ alt=”Make payments with PayPal – it’s fast, free and secure!”>

</form>

Thanks in advance for any help
Hans

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@pyroSep 21.2003 — 13% of users don't have JavaScript enabled, so if you use it to do this, your link won't work for 13% of web users...
Copy linkTweet thisAlerts:
@hrecterauthorSep 21.2003 — Thanks for your reply. Maybe Javascript isn't the way to go.

The problem I have is that the menu system I am using will either point to a URL or run Javascript code.

What I am trying to do is to use one of my menu buttons as the 'View Cart' so that it is available from any page on the site.

Any ideas will be greatfully received.

Hans
×

Success!

Help @hrecter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...