CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 PayPal link

Print topic Send  topic

Author Message
mark
Posted: 09/17/2003, 2:23 PM

How do I get my PayPal link to open in a new window?

In my database, I created a blob field with my PayPal html code. See below.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@mydomain.com">
<input type="hidden" name="item_name" value="My Product">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="image" src="https://www.paypal.com/images/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

In CodeCharge, I created a Label Type field with HTML checked. Everything works fine but I want the PayPal page to open in a popup window.

I'm using CC2.0 with PHP as language.

Thanks much!
Headhunter
Posted: 09/17/2003, 2:55 PM

Modify your link in the html code like this:

<a href="{paypal_link_Src}" target="_blank" onclick="if (window.open) {Console=window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400'); return false;} else { return true;}">{paypal_link}</a>

http://www.dbweaver.com
mark
Posted: 09/17/2003, 3:25 PM

I pasted my code from my original message to where you have paypal_link_Src and paypal_link in your code. I assume this is wrong because it didn't work. Please help.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.