ironfront Posted December 2, 2003 Share Posted December 2, 2003 I am trying to add some HTML to my index page, but whenever I do, I get a php error and all the html I added is replaced with "TEXT_MAIN" on my index page. I figure I am suspposed to add it in define('TEXT_MAIN', 'bleh'); and replace bleh with the html. But it isnt working. Here is the html I am trying to add: <div align="center"> <table width="100%" border="0" align="center" cellspacing="1"> <tr> <td width="50%"><font face="Arial, Helvetica, sans-serif">Check out our latest shirt, "This is not the greatest shirt in the world... this is just a tribute." This item is available in Black, Indigo Blue, and Charcoal Grey and Men's sizes S-M-L-XL-XXL.</font></td> <td width="50%" align="left" valign="top"><img src="http://www.ironfront.com/images/new.jpg"></td> </tr> <tr align="center" valign="top"> <td colspan="2"><p> </p> <p><font face="Arial, Helvetica, sans-serif"><strong>Please select a catagory to view:</strong></font></p></td> </tr> <tr align="center" valign="top"> <td><p><img src="http://www.ironfront.com/images/humor.gif"></p> <p><font face="Arial, Helvetica, sans-serif">Humor Shirts</font></p></td> <td><p><img src="http://www.ironfront.com/images/gasp.gif"></p> <p><font face="Arial, Helvetica, sans-serif">Design & Misc. Shirts</font></p></td> </tr> <tr align="center" valign="top"> <td><p><img src="http://www.ironfront.com/images/girltee.gif"></p> <p><font face="Arial, Helvetica, sans-serif">Girl's Shirts</font></p></td> <td><p><img src="http://www.ironfront.com/images/beelzebub.gif"></p> <p><font face="Arial, Helvetica, sans-serif">Beelzebub & Chickensuit Shirts</font></p></td> </tr> <tr> <td colspan="2"><div align="center"> <p>x</p> <p><font face="Arial, Helvetica, sans-serif">Accessories</font></p> </div></td> </tr> <tr> <td colspan="2"> </td> </tr> </table> </div> Any help would be awsome. thanks. Link to comment Share on other sites More sharing options...
Databuilder Posted December 2, 2003 Share Posted December 2, 2003 You need to escape the single quote in this line <p><font face="Arial, Helvetica, sans-serif">Girl's Shirts</font></p></td> put a back-slash in fron of it. <p><font face="Arial, Helvetica, sans-serif">Girl\'s Shirts</font></p></td> Link to comment Share on other sites More sharing options...
ironfront Posted December 3, 2003 Author Share Posted December 3, 2003 You need to escape the single quote in this line<p><font face="Arial, Helvetica, sans-serif">Girl's Shirts</font></p></td> put a back-slash in fron of it. <p><font face="Arial, Helvetica, sans-serif">Girl\'s Shirts</font></p></td> So basically it just has a problem with ' ? So whatever I add I just need to be carefull of it? Link to comment Share on other sites More sharing options...
ironfront Posted December 3, 2003 Author Share Posted December 3, 2003 Crap. I just did that, but it still isnt working. I added the backslash in the Men\'s one too. Help! Link to comment Share on other sites More sharing options...
fiat707 Posted December 3, 2003 Share Posted December 3, 2003 What's error you got? Link to comment Share on other sites More sharing options...
241 Posted December 3, 2003 Share Posted December 3, 2003 try using ' for ure apostrophe instead of \' or make it an acute with ´ No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
241 Posted December 4, 2003 Share Posted December 4, 2003 this is the number alternative & # 180 ; again take out the spaces or you will only see this ´ ran out of time on the edit thus posted over two posts sorry No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
241 Posted December 4, 2003 Share Posted December 4, 2003 try using & #39; take out the space between & and # this will give ' for your apostrophe instead of \' or make it an acute with ´ the number equivelent is & #180; take out the space between & and # this will give which will give ? Apologies for earlier posts ran out of edit time then made mistakes. you can also use “ for left quote and ” for right quote However you may need to use & #34; again take out the space between & and # this gives " No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.