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: When you post a project, it's easier for people to discover it if you choose a great title for your thread.
Total Members: 302,069
Currently Running With Scissors:
613 Guests and 26 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 525 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
4 Must-Do Trends For Homecoming Dresses
How to Pick the Perfect Booties for Fall
Jennifer Lopez October 2013 Cosmo Cover Shoot
How to Pick a Sexy Back-To-School Outfit
Making the Most of Back-To-School Shopping By Shopping Local
Latest Blog Articles
@Home This Weekend: Lamp Transformation
Book Review: Handmade for Baby
Tute Tuesday: Warm Those Piggies!

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-2015, Craftster.org an Internet Brands company.