chezlouise1980 Posted March 10, 2005 Share Posted March 10, 2005 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 More sharing options...
Guest Posted March 10, 2005 Share Posted March 10, 2005 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 More sharing options...
chezlouise1980 Posted March 10, 2005 Author Share Posted March 10, 2005 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 <{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.