locked
Expression Web 2 adds a line of code to Paypal supplied hyperlink code for Paypal "buy now" buttons RRS feed

  • Question

  • I am using Expression Web 2 in a Windows 7 operating system. Using Paypal for on-line payments. When I create a Paypal "Buy Now" button, the site provides the hyperlink code to be copied and pasted into the hyperlink properties box on my site. The hyperlinks are broken from the outset. Paypal support says it is because Expression Web 2 adds an extra line of code when it pastes it into my site. The say they have no work-around available at this time.

    The following is the copied code from Paypal:
    <form 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="7704995">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" 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>

    Copying and pasting this code into the hyperlink for the button produces an extra line of code, immediately after the third line:
    <a href="%3Cform%20action=%22https:/www.paypal.com/cgi-bin/webscr%22%20method=%22post%22%3E">

    I have tried the following steps:
    -Delete the original button and create a new one, in the hope that the code might be different
    -Try using control click in the split screen mode to test the hyperlink...produces ann error message that there is no such address on the web
    -Opened IE 8 and tried to follow hyperlink from live website but get a "can't display this page"message
    -Tried to edit the code in Expression Web 2, i.e., remove the added code, but doing so is the same as simply removing the link altogether. 

    Is there a setting in Expression Web 2 that can be turned-off to correct the problem?
    Anyone else have a solution?

    Don

    Wednesday, February 10, 2010 12:39 AM

Answers

  • Don,

    Don't paste it into a hyperlink. Go to code view and just paste the code you have received here from Paypal directly into your code page. The button in the form is the only link you need. I did that and ran the preview in browser and the Buy Now button brought up my account on PayPal.

    Wednesday, February 10, 2010 2:21 AM

All replies

  • Don,

    Don't paste it into a hyperlink. Go to code view and just paste the code you have received here from Paypal directly into your code page. The button in the form is the only link you need. I did that and ran the preview in browser and the Buy Now button brought up my account on PayPal.

    Wednesday, February 10, 2010 2:21 AM
  • I'm confused by your statement: "Copying and pasting this code into the hyperlink for the button produces an extra line of code, immediately after the third line:
    <a href="%3Cform%20action=%22https:/www.paypal.com/cgi-bin/webscr%22%20method=%22post%22%3E">"

    You don't past that code into a hyperlink.  You simply paste that code into your page in Code View, period, and it creates the working button.

    Is that what you meant to say?

    Assuming yes, then:  Pasting paypal button code into my pages does not change it or add another line.  Pasting the code you posted: ditto.  No change.


    Wednesday, February 10, 2010 2:23 AM
  • I followed your advice and have solved the problem. thanks, you have saved me a ton of work!
    Don
    Wednesday, February 10, 2010 6:32 AM
  • It worked just fine. Thanks for your help. Appreciate it!
    Wednesday, February 10, 2010 6:33 AM