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: Fanatic Friends of Craftster now have the ability to disable ads on Craftster! Read more here.
Total Members: 296,611
Currently Running With Scissors:
542 Guests and 11 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 445 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:  



only results with images
include swap threads
advanced search



your ad could be here!

How-To Videos
Stir-Fry 101
How to Make Miso Glazed Rockfish
Easy Beef Noodle Stir Fry Recipe
Asian Chicken Noodle Soup Recipe
Ginger-Scallion Chicken Wings Recipe
Latest Blog Articles
Winner of Craft Challenge #100-Pottermouth
July 23, 2014 Featured Projects
Tute Tuesday: Fabric and Felt Bird Ornament

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.