button not working...image missing?

wilma2
New Community Member

Hello, I am trying to set up a paypal button on this site http://www.thermographynorthernbc.com/index.php?option=com_content&view=article&id=71&Itemid=85 I was given the code to put in, I can post it here if you want. But the account the $ goes to is not mine I am just the website person. But something is not right, could you please take a look? A button seems to be missing or something. I sure appreciate it. Thank you

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

snowshoe
Frequent Advisor
Frequent Advisor

Your code is missing the URLs that are part of the item button code.  It's possible your HTML Editor is removing the URLs to both PayPal's site and the URL to the where the button graphic is stored.   PayPal's item button code is simply an HTML Form.  Some web sites or hosts or HTML Editors don't play well with HTML Forms.

 

Basiclly the code on your page looks like this, I removed the table formatting for ease of view:

 

<form action="&lt;a href="/ https:="" www="" paypal="" com="" cgi-bin="" webscr="" a="" method="post" target="_top">
<input name="cmd" value="_s-xclick" type="hidden">
<input name="hosted_button_id" value="VTKFFWRNCVX2W" type="hidden">
<input name="on0" value="Mobile Clinics" type="hidden">Mobile Clinics
<br><br>
<select name="os0">
<option value="Dawson Creek Mobile Clinic">Dawson Creek Mobile Clinic $250.00 CAD</option>
<option value="Grande Prairie Mobile Clinic">Grande Prairie Mobile Clinic $300.00 CAD</option>
</select>
<input name="currency_code" value="CAD" type="hidden">
<br><br>
<input src="/&lt;a href=" https:="" www="" paypalobjects="" com="" en_us="" i="" btn="" btn_buynowcc_lg="" gif="" a="" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">
<img alt="" src="/&lt;a href=" https:="" www="" paypalobjects="" com="" en_us="" i="" scr="" pixel="" gif="" a="" height="1" border="0" width="1"/>
</form>

 

 

 

 

 Notice the first line and the last two lines of code, the URLs required are not there.

 

The code should look something like this where as now your web browser knows where to go:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" value="_s-xclick" type="hidden">
<input name="hosted_button_id" value="VTKFFWRNCVX2W" type="hidden">
<input name="on0" value="Mobile Clinics" type="hidden">Mobile Clinics
<br><br>
<select name="os0">
<option value="Dawson Creek Mobile Clinic">Dawson Creek Mobile Clinic $250.00 CAD</option>
<option value="Grande Prairie Mobile Clinic">Grande Prairie Mobile Clinic $300.00 CAD</option>
</select>
<input name="currency_code" value="CAD" type="hidden">
<br><br>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

 

You may or may not be able to resolve this issue as it depends on how your site and/or Editor handle HTML Forms.  Some sites and/or Editors have to be in a specific mode to work with Forms while other sites and/Editors just won't accept the Forms or allow you to use them.

 

Should you learn that Forms are not allowed, then your next option would be to use the text or hyperlink version of the item button code.

 

You can build your own Button Text Links from scratch or take advantage of the Online Button Creator within your PayPal Account.   After generating the button code online, select the "Email" tab to view the Text Link Code.   Note, the "Email" tab will not be available if have included dropdown selections or text boxes in your item button code.   This is because you cannot include dropdown selections or text boxes in a Text or Hyperlink.

View solution in original post

Login to Me Too
3 REPLIES 3
Solved

snowshoe
Frequent Advisor
Frequent Advisor

Your code is missing the URLs that are part of the item button code.  It's possible your HTML Editor is removing the URLs to both PayPal's site and the URL to the where the button graphic is stored.   PayPal's item button code is simply an HTML Form.  Some web sites or hosts or HTML Editors don't play well with HTML Forms.

 

Basiclly the code on your page looks like this, I removed the table formatting for ease of view:

 

<form action="&lt;a href="/ https:="" www="" paypal="" com="" cgi-bin="" webscr="" a="" method="post" target="_top">
<input name="cmd" value="_s-xclick" type="hidden">
<input name="hosted_button_id" value="VTKFFWRNCVX2W" type="hidden">
<input name="on0" value="Mobile Clinics" type="hidden">Mobile Clinics
<br><br>
<select name="os0">
<option value="Dawson Creek Mobile Clinic">Dawson Creek Mobile Clinic $250.00 CAD</option>
<option value="Grande Prairie Mobile Clinic">Grande Prairie Mobile Clinic $300.00 CAD</option>
</select>
<input name="currency_code" value="CAD" type="hidden">
<br><br>
<input src="/&lt;a href=" https:="" www="" paypalobjects="" com="" en_us="" i="" btn="" btn_buynowcc_lg="" gif="" a="" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">
<img alt="" src="/&lt;a href=" https:="" www="" paypalobjects="" com="" en_us="" i="" scr="" pixel="" gif="" a="" height="1" border="0" width="1"/>
</form>

 

 

 

 

 Notice the first line and the last two lines of code, the URLs required are not there.

 

The code should look something like this where as now your web browser knows where to go:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" value="_s-xclick" type="hidden">
<input name="hosted_button_id" value="VTKFFWRNCVX2W" type="hidden">
<input name="on0" value="Mobile Clinics" type="hidden">Mobile Clinics
<br><br>
<select name="os0">
<option value="Dawson Creek Mobile Clinic">Dawson Creek Mobile Clinic $250.00 CAD</option>
<option value="Grande Prairie Mobile Clinic">Grande Prairie Mobile Clinic $300.00 CAD</option>
</select>
<input name="currency_code" value="CAD" type="hidden">
<br><br>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

 

You may or may not be able to resolve this issue as it depends on how your site and/or Editor handle HTML Forms.  Some sites and/or Editors have to be in a specific mode to work with Forms while other sites and/Editors just won't accept the Forms or allow you to use them.

 

Should you learn that Forms are not allowed, then your next option would be to use the text or hyperlink version of the item button code.

 

You can build your own Button Text Links from scratch or take advantage of the Online Button Creator within your PayPal Account.   After generating the button code online, select the "Email" tab to view the Text Link Code.   Note, the "Email" tab will not be available if have included dropdown selections or text boxes in your item button code.   This is because you cannot include dropdown selections or text boxes in a Text or Hyperlink.

Login to Me Too

wilma2
New Community Member

That worked great snowshoe. I had thought of the idea the url was missing but since that is the code I got via email from paypal  I thought it had to be right and I was missing something.  I copied and pasted the code from the email paypal sent my client, so I am guessing that outlook/word stripped it when I copied it over? thanks so much Snowshoe I appreciate it.  You rock!

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.