Paypal form

Last post 11-10-2005 4:10 PM by timelord. 20 replies.

Sort Posts:

  • Paypal form

    03-05-2005, 10:27 AM
    • Member
      145 point Member
    • ahammons
    • Member since 02-04-2005, 8:51 AM
    • Posts 29
    How do we insert a paypal form ( the form that is generated by paypal) in a text/html module? When we try we get the page with the paypal button but, our page is not displaying correctly and when we click the button it simply displays the same page.

    We can enter the same code in dreamweaver in a html page and have no problem.

    thanks,
    arlie
  • Re: Paypal form

    03-06-2005, 2:19 AM
    • Contributor
      7,345 point Contributor
    • nbc
    • Member since 06-29-2002, 12:06 AM
    • Perth, Western Australia
    • Posts 1,469
    You cannot use the module to make forms as there can only be one form on an aspx page. Your options are;
    1 buy a 3rd party module that does this
    2 create your form as a PA (DNN module) that you can add to any page.

    Regards
  • Re: Paypal form

    03-06-2005, 3:03 AM
    • Member
      590 point Member
    • vasilis
    • Member since 07-19-2002, 3:36 PM
    • Italy
    • Posts 118

    More options:

    - Use the iframe module

    - Use this free module if you just need a donate button:

    http://www.dominoconsulting.net/Default.aspx?tabid=38

  • Re: Paypal form

    03-06-2005, 4:13 AM
    • Contributor
      5,421 point Contributor
    • xpdit
    • Member since 08-25-2002, 5:20 PM
    • Victoria, BC, CANADA
    • Posts 1,086
    a long time ago i made a paypal donations module for dnn for free. you may remember it. but nobody donated, and eventually it lost interest.
    so i made something much nicer:

    for using paypal out of the box in your dnn instance, you may try the KodHedZ form generator, you can request a trial copy at KodHedZ.
    It includes a form for paypal integration for adding a user to a role.
    the default forms included are:

    register to the portal
    create a new portal and make registrar the admin
    create a templated portal (using khz portal duplicator)
    register to a role
    register to a role using paypal
    register to a customized form.


    in essence, you can do what you want to out of the box for dnn if you know how to do it, but it takes a bit of code. for anything advanced, there are third party modules available.

    Intuition without concept is blind; Concept without intuition is empty -- I. Kant : Critique of Pure Reason

    In the olden days, books were burned. Now the website is shut down.

    KodHedZ Software Development
  • Re: Paypal form

    03-07-2005, 5:44 PM
    • Member
      145 point Member
    • ahammons
    • Member since 02-04-2005, 8:51 AM
    • Posts 29
    thanks for the replys. looks like developing a custom module.

    arlie
  • Re: Paypal form

    03-14-2005, 10:57 PM
    • Star
      13,145 point Star
    • J7Mitch
    • Member since 10-19-2002, 1:23 PM
    • Posts 2,632
    • TrustedFriends-MVPs
    You can do this with a simple javascript trick.

    Step 1. Remove the <Form> </Form> tags from your PayPal "Buy Now" code.
    Step 2. Add onClick="document.getElementById('Form').action='https://www.paypal.com/cgi-bin/webscr';" to the buy now input button

    Step 3. paste all of it into the html module


    Note: older versions (1.0x) of DNN had the Form name as Form1 so step #2 would be
    Add onClick="document.getElementById('Form1').action='https://www.paypal.com/cgi-bin/webscr';" to the buy now input button
    John M.

    DotNetNuke Module for Performance
  • Re: Paypal form

    03-15-2005, 1:22 PM
    • Member
      310 point Member
    • JimFrazee
    • Member since 05-31-2003, 10:46 PM
    • Posts 62
    Thanks for the tip, John! It worked great -- once I figured out you have to drop the "1" after 'Form'. ;o)

    Jim
  • Re: Paypal form

    03-15-2005, 1:30 PM
    • Star
      13,145 point Star
    • J7Mitch
    • Member since 10-19-2002, 1:23 PM
    • Posts 2,632
    • TrustedFriends-MVPs

    Sorry about that, I had pulled that off an older version of DNN.
    John M.

    DotNetNuke Module for Performance
  • Re: Paypal form

    04-17-2005, 11:57 PM
    • Member
      25 point Member
    • up2late
    • Member since 03-21-2005, 12:37 PM
    • Posts 5
     J7Mitch wrote:
    You can do this with a simple javascript trick. Step 1. Remove the

    tags from your PayPal "Buy Now" code. Step 2. Add onClick="document.getElementById('Form').action='https://www.paypal.com/cgi-bin/webscr';" to the buy now input button Step 3. paste all of it into the html module

    Hi I am running the latest version 3.0.13 and this does not work for me unless I am missing something?  When you click on the button it doesnt do anything.  What am I missing?

  • Re: Paypal form

    04-18-2005, 12:56 AM
    • Star
      13,145 point Star
    • J7Mitch
    • Member since 10-19-2002, 1:23 PM
    • Posts 2,632
    • TrustedFriends-MVPs

    Post a link to your site and I'll let you know why it isn't working.

    If you can't post a link then post your code.

    John M.

    DotNetNuke Module for Performance
  • Re: Paypal form

    04-19-2005, 5:24 PM
    • Member
      25 point Member
    • clmuppy
    • Member since 04-19-2005, 9:17 PM
    • Posts 5

    I am converting a site to DotNet Nuke and have a similar problem. Here is the code I have so far if you could lend a hand I would greatly appreciate it

    ***Old Code That Works on a Cold Fusion site***

    <link href="Link" rel="stylesheet" type="text/css">

    <TABLE border=0>
    <form name="ccoptin" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post">
    <TR>
    <TD aligh=center><a href="sample"><IMG src="Image" border="0"></a></TD></TR>
    <TR>
    <TD align=center><INPUT class=textfield name="ea" align="absmiddle" size=30>&nbsp;
    <input type=hidden name="m" value="1011337006012">
    <input type=hidden name="p" value="oi">
    <INPUT type=image alt=Subscribe name="go"  src="Image" value=Go border=0 align="absmiddle"></TD></TR>
    <TR>
    <TD align=center><FONT face="verdana, arial" size=1>Enter your e-mail address to receive GraceMail!</FONT></TD></TR>
    </FORM></TABLE>

     

    *** New Code ***

    <LINK href="/calvaryphx_dev/portals/0/gracemail.css" type=text/css rel=stylesheet>
    <TABLE width=169 border=0>
    <TBODY>
    <TR>
    <TD align=middle><A href="link"><IMG src="image" border=0></A></TD></TR>
    <TR>
    <TD align=middle><INPUT class=textfield id=email align=absMiddle name=ea>&nbsp; <INPUT type=hidden value=1011337006012 name=m> <INPUT type=hidden value=oi name=p> <INPUT onclick="document.getElementById('Form').action='http://ui.constantcontact.com/d.jsp';" type=image alt=Subscribe src="gracemail_gobutton.jpg" align=absMiddle value=Go border=0 name=go></TD></TR></TBODY></TABLE>

     

     

     

     

     

    Thanks,

    Cary

  • Re: Paypal form

    04-19-2005, 6:15 PM
    • Star
      13,145 point Star
    • J7Mitch
    • Member since 10-19-2002, 1:23 PM
    • Posts 2,632
    • TrustedFriends-MVPs

    Take this line out:
    <form name="ccoptin" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post">

    And since it is posting to a new window add this to the onclick of the image button:

    <INPUT onclick="document.getElementById('Form').action='http://ui.constantcontact.com/d.jsp';document.getElementById('Form').target='_blank'" type=image alt=Subscribe src="gracemail_gobutton.jpg" align=absMiddle value=Go border=0 name=go>

    John M.

    DotNetNuke Module for Performance
  • Re: Paypal form

    04-19-2005, 6:37 PM
    • Member
      25 point Member
    • clmuppy
    • Member since 04-19-2005, 9:17 PM
    • Posts 5

    I had to edit the original post inorder for it to come out correctly.

    I added the line you included above and it does redirect me to the correct page, but it does not include the values fromt eh three input fields. Therefore the page errors out because it is expecting the parameters. Not sure if this makes any sense.here is the code I have now.

    <LINK href="/calvaryphx_dev/portals/0/gracemail.css" type=text/css rel=stylesheet>
    <TABLE width=169 border=0>
    <TBODY>
    <TR>
    <TD align=middle><A href="link"><IMG src="gracemail_logo.jpg" border=0></A></TD></TR>
    <TR>
    <TD align=middle><INPUT class=textfield id=email align=absMiddle name=ea>&nbsp; <INPUT type=hidden value=1011337006012 name=m> <INPUT type=hidden value=oi name=p> <INPUT onclick="document.getElementById('Form').action='http://ui.constantcontact.com/d.jsp';document.getElementById('Form').target='_blank'" type=image alt=Subscribe src="gracemail_gobutton.jpg" align=absMiddle value=Go border=0 name=go></TD></TR></TBODY></TABLE>

    Also when I save this code and then click on edit text in the Module drop down box it fires the onclick event above. :o) Kinda strange.

     

  • Re: Paypal form

    04-19-2005, 7:24 PM
    • Member
      25 point Member
    • up2late
    • Member since 03-21-2005, 12:37 PM
    • Posts 5

    Here is my code I have tried just about everything :(

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCV
    VMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEg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    DTA1MDQxOTIzMTkyMFowIwYJKoZIhvcNAQkEMRYEFEasCr+Iv2SRXh1xs8NNS42hoXrEMA0GC
    SqGSIb3DQEBAQUABIGAEFDCj6Ry28y0dq6eyC6YNn0QykDLnCge55LhF/T7QipoRb/XJEFDJOkwm
    EOF1Az10yX3IhbN+NyFr6YGxVfEgbt8YrJJjnIK2C1MRMf8SIuncSpZ1wCKcpPQxyDWXpEHuZd+3Jh
    xStnQgSCMwBQXbvjR26tjCcbJCgO9UFMn8l0=-----END PKCS7-----
    ">
    </form>

  • Re: Paypal form

    04-19-2005, 8:56 PM
    • Star
      13,145 point Star
    • J7Mitch
    • Member since 10-19-2002, 1:23 PM
    • Posts 2,632
    • TrustedFriends-MVPs

    Up2Late,

    This looks like the normal PayPal buy now code.

    Step 1. Remove the <Form> </Form> tags from your PayPal "Buy Now" code.
    Step 2. Add onClick="document.getElementById('Form').action='https://www.paypal.com/cgi-bin/webscr';" to the buy now input button

    After doing that you should have something that looks more like what clmuppy posted.

    Step 3. paste all of it into the html module

    John M.

    DotNetNuke Module for Performance
Page 1 of 2 (21 items) 1 2 Next >