Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Paypal Donate button not working - circles back to original pagePaypal Donate button not working - circles back to original page
Previous
 
Next
New Post
3/23/2012 9:54 AM
 

Hoping for help, new IT guy, not much HTML experience, thrown a project, and this paypal button is the last piece

 Making  a donation by <strong>PayPal</strong> is just a click away for all PayPal account  holders. </p>
            <center><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_donations">
 
<input type="hidden" name="item_name" value="Community Treatment Solutions">
<input type="hidden" name="business" value="donations@ctsnj.org">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="images/paypalbutton.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></center>

 it simply will link back to the same page, any assistance would be greatly appreciated!!! 

 
New Post
3/24/2012 12:05 AM
 

You cannot do this version of the palpay html in DNN or any asp.net based application for that matter - by just dumping some html into a text module. It simply will never work

The reason for this is that in Asp.net - there is only allowed to be one <FORM tag for the whole page - and that form tag exists in the default.aspx master page for the entire dnn application.

There are a number of ways around this - the most quick and dirty is to put your HTML in a separate .html file and render the button using an <IFRAME tag.  

The other methods involve javascript postback code or server side asp.net code to handle the postback to paypal.

Alternatively - there are a couple of modules around that will create the button correctly for you.

Westa

 
New Post
4/3/2012 9:07 AM
 

thank you very much! Its up and working now:

<center> <input type="hidden" value="_donations" name="cmd" /><span style="color: #949494;"> 
<input type="image" target="_blank" alt="PayPal - The safer, easier way to pay online!"
name="submit" src="/portals/0/images/paypalbutton.jpg" onclick="this.form.action='https://www.paypal.com/cgi-bin/webscr'" />
</span><input type="hidden" value="Community Treatment Solutions" name="item_name" />
<input type="hidden" value="donations@ctsnj.org" name="business" /><input type="hidden" value="0" 
name="no_shipping" /><input type="hidden" value="1" name="no_note" /><input type="hidden" value="USD" name="currency_code" />
<input type="hidden" value="0" name="tax" /><input type="hidden" value="US" name="lc" /><input type="hidden" value="PP-DonationsBF" name="bn" /> 
</center>
 but now i can't seem to get it to open in a new page, i tried moving the target="_blank" everywhere, and can't get it to open into a new window. Any resolution to this? I tried looking at other forums and haven't found an answer yet.

Thanks again,
   Brandon

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Paypal Donate button not working - circles back to original pagePaypal Donate button not working - circles back to original page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out