A Crafts Community For Craft Ideas & DIY Projects - Craftster.org
Help | About | Contact | Press | Advertise | Terms | Site Map
Welcome, Guest.
Please login or register.
Random Tip: Craftster is for freely sharing how to make things! Don't post pics of things you sell in hopes of getting some sales or we'll have to bust out the LIMBO stick on you! Wink
Total Members: 299,178
Currently Running With Scissors:
635 Guests and 15 Users
Home Craftster Community Crafting Articles Craft Tutorials My Craftster Crafting Calendar City Guides Craft Shop


Pages: [1]
Jump to page:
  Show Images Only     Send this topic  |  Print  |  Bookmark  
Topic: help with PayPal buttons  (Read 507 times)
Tags for this thread: paypal  Add new tag
Share the love... Pin it Submit to reddit add to Wists
1+
 
ericsktbrdr
« on: October 11, 2005 12:13:17 AM »

So Im working on my my site and for each item I want to create one of those simple Buy Now buttons you can make with PayPal.  So I made them and pasted em into my html code.  Heres the thing,  all my items for sale are in an iframe, so when you click the Buy Now button it opens inside the frame.  but i would like to make it so when someone clickeds the buy now button it opens in a new browser window.  Do you understand what I mean?  I imagine its similar code i need to add in like target="_blank" like in a hyperlink, but i dont understand how to fix the buy now button to do it

help!

thx in adance
THIS ROCKS   Logged
APrettyRock
« Reply #1 on: October 11, 2005 06:22:19 AM »

So Im working on my my site and for each item I want to create one of those simple Buy Now buttons you can make with PayPal.  So I made them and pasted em into my html code.  Heres the thing,  all my items for sale are in an iframe, so when you click the Buy Now button it opens inside the frame.  but i would like to make it so when someone clickeds the buy now button it opens in a new browser window.  Do you understand what I mean?  I imagine its similar code i need to add in like target="_blank" like in a hyperlink, but i dont understand how to fix the buy now button to do it

You got it the right idea. All you need to do is change your <form> tag. So, if it was:

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

Change it to:

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

ericsktbrdr
« Reply #2 on: October 11, 2005 02:59:44 PM »

thanks so much!
THIS ROCKS   Logged
APrettyRock
« Reply #3 on: October 14, 2005 10:06:20 AM »

No problem!
THIS ROCKS   Logged

Threads you might like:
Pages: [1] Jump to page:
  Send this topic  |  Print  |  Bookmark  
 
Jump to:  



FacebookTwitterPinterest
only results with images
include swap threads
advanced search



your ad could be here!

How-To Videos
How to Draw Hearts
How to Draw Flames
How to Draw Faces
How to Draw Clothes
How to Draw Cars
Latest Blog Articles
Handmade Gift Ideas: Hippogriff
Handmade Gift Ideas: Exploding Needle Box
Handmade Gift Ideas: Japanese Shibori Dyeing

Comparison Shopping




Support Craftster
Become a
Friend of Craftster

Buy Craftster Swag
Buy Craft Supplies
Comparison Shopping

Craftster heartily thanks the following peeps...
Moderators

Follow Craftster...






Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
SimplePortal 2.3.5 © 2008-2012, SimplePortal
Valid XHTML 1.0! Valid CSS!

Copyright ©2003-2014, Craftster.org an Internet Brands company.