Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error unexpected t-string


chezlouise1980

Recommended Posts

I would like to put a paypal logo on my site and the instructions are to copy and paste the html code and insert it into my homepage as i would with text. When i do this, i get a parse error unexpected t string on my site. Can someone check the html code for me and suggest another way to add it onto my home page?

 

Here is the paypal code

 

<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>

<tr><td align="center"><a href="java script:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/popup/OLCWhatIsPayPal','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no', width='400', height='350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

 

 

Thanks in advance,

 

Cheryl

Link to comment
Share on other sites

Cheryl,

 

Are you pasting it inside php code? If so, add php tags around it like so:

 

?>
<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/popup/OLCWhatIsPayPal','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no', width='400', height='350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->
<?php

 

That will end the php code before and restart it after the PayPal HTML code.

 

ed

Link to comment
Share on other sites

Cheryl,

 

Are you pasting it inside php code?  If so, add php tags around it like so:

 

?>
<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/popup/OLCWhatIsPayPal','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no', width='400', height='350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->
<?php

 

That will end the php code before and restart it after the PayPal HTML code.

 

ed

 

Hi Ed,

 

Trying to post it in index.php file after my home page text in text_main. Have tried what you suggested but had no luck. Manage to change text okay but cant add this logo!

Thanks anyway,

Cheryl

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...