A Crafts Community For Craft Ideas & DIY Projects - Craftster.org
Help | About | Contact | Press | Advertise | Cookie Policy | Terms | Site Map
Welcome, Guest.
Please login or register.
Random Tip: Need help? Click the HELP link at the top of the screen to read the docs or ask at the Help Desk.
Total Members: 315,702
Currently Running With Scissors:
522 Guests and 21 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 732 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



How-To Videos
Low-Cost Artwork - Working with Fabrics
Low-Cost Artwork - Finding Inspiration
How to Frame Artwork
How to Create, Frame and Hang Low-Cost Artwork
How to Make Halloween Party Crafts
Latest Blog Articles
Meatless Monday: Bean Burgers
@Home This Weekend: Vermicomposting
It's a bad week to be a seal...

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