Skip navigation
Blissfulspace
Currently Being Moderated

Post Paypal buttons in to Dreamweaver CS6

Apr 30, 2013 1:49 AM

Hi

 

I've created a add to cart button in Paypal, however when I paste the code from Paypal into Dreamweaver it does not work, I end up with yellow code warning notification, but not sure how to correct the problem.

 

Can anyone advise what I should do.

 

Thanks

 

Martin

 
Replies
  • Currently Being Moderated
    Apr 30, 2013 3:25 AM   in reply to Blissfulspace

    You can see the code and cannot figure out the problem. How do you expect us to find the problem blindfolded.

     

    This is unfair! Please post a link to your site so that we can be on equal footing.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2013 9:00 AM   in reply to Blissfulspace

    You have used target="" twice in the form. I'm not even sure what that is to be honest. I would remove both instances:

     

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2013 10:56 AM   in reply to Blissfulspace

    Change your code to below and it will process properly and validate too

     

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">

    <input type="hidden" name="cmd" value="_s-xclick">

    <input type="hidden" name="hosted_button_id" value="QUFELQSUGRXGJ">

    <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" name="submit" alt="PayPal – The safer, easier way to pay online.">

    <img alt="" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">

    </form>

     

    If you will have a bunch of buttons to place, may I suggest you save the code as a "DW Snippet"

    Before saving, just replace the hosted button value with XXX and when you need a new  button, just select the smippet and click insert.  Then all you need to do is replace the XXX with the appropriate hosted value, and voila, a functioning button that will validate.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points