Paypal Shopping Cart

Status
Not open for further replies.

serverbaboon

Solid State Member
Messages
18
I'm trying to make a "View Cart" button work in a web page and its an epic fail. I followed Paypal's Tutorial and used this code:

Code:
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr"  
 
 method="post">  

 <!-- Identify your business so that you can collect the payments. -->  
 
 <input type="hidden" name="business" value="kin@kinskards.com">  

 <!-- Specify a PayPal Shopping Cart View Cart button. -->  

 <input type="hidden" name="cmd" value="_cart">  
 
 <input type="hidden" name="display" value="1">  

 <!-- Display the View Cart button. -->  
 
 <input type="image" name="submit" border="0"  
 
 src="https://www.paypal.com/en_US/i/btn/btn_viewcart_LG.gif"   
  
 alt="PayPal - The safer, easier way to pay online">  

 <img alt="" border="0" width="1" height="1"  >

 src="https://www.paypal.com/en_US/i/scr/pixel.gif" >  
</form>

I replaced the email with my paypal email and when the button is clicked, all that happens is the web page is refreshed. what?

Thanks lol.


*edit*
Update: If I make an html file with only the shopping cart code, - no problem. It opens in a new tab. When I include it in the site, all it does is refresh the page. Any ideas? Its probably something stupid but I can't figure it out.
 
I don't see anything in your HTML so it's most likely somewhere else in the page causing it. Are you using any scripting or language? Or is the entire page purely HTML?
 
You're going to need to post the code of the entire page, otherwise we can't really do much.
 
Status
Not open for further replies.
Back
Top Bottom