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

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

 

 

you can put this anywhere as long as you do not pass it to php.

So make sure it is outside <?php ?> tags.

Treasurer MFC

Link to comment
Share on other sites

you can put this anywhere as long as you do not pass it to php.

So make sure it is outside <?php ?> tags.

 

 

 

Thanks Amanda but still cant do it. Tried putting it at end of file and it placed it above the header. Do i have to close php ?> then reopen <? to enable me to place it?

 

Thanks again,

Cheryl

Link to comment
Share on other sites

Thanks Amanda but still cant do it. Tried putting it at end of file and it placed it above the header. Do i have to close php ?> then reopen <? to enable me to place it?

 

Thanks again,

Cheryl

 

well yes, if you add it in between php code use :

 

.....

?>

 

your html

 

<?php

....

Treasurer MFC

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...