cherim Posted May 21, 2010 Posted May 21, 2010 I realize I saw this question posted here before but unfortunately the answers are not working for me. I am trying to insert the html code for the privacy policy into the page. This is the error I'm coming up with. Parse error: syntax error, unexpected T_STRING in /home/tpchoice/public_html/includes/languages/english/privacy.php on line 16 This is portion of the code where I think the error is falling in. define('TEXT_INFORMATION', '<div style='float:right; text-align:center; padding-bottom: 15px; padding-left: 15px; padding-right: 13px;'><br /><br /><br /> <a style='color:gray; text-decoration:none; cursor:default;' href='http://www.trust-guard.com/Hacker-Safe-s/42.htm'target='_blank'><img style='border:none;' src='http://www.freeprivacypolicy.com/privacypolicy1.jpg' alt='cheri Moore' /></a></div> <div style="font-family:verdana"><strong>What information do we collect?</strong> <br /><br />We collect information from you when you register on our site, place an order, subscribe to our newsletter or fill out a form. <br /><br />When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address, phone number or credit card information. You may, however, visit our site anonymously.<br /><br /><strong>What do we use your information for?</strong> <br /><br />Any of the information we collect from you may be used in one of the following ways: <br /><br />• To personalize your experience<br />(your information help I know it has to do with quotes in the HTML but I've tried to correct them. Something is not happening right Thank you so much for your help in advance Cheri
germ Posted May 21, 2010 Posted May 21, 2010 define('TEXT_INFORMATION', 'All the apostrophe\'s in this part of the code must have the slash preceding them.<br> If you don\'t, PHP doesn\'t know what to do and it won\'t show the page.<br> I hope this demo hasn\'t been in vain'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
cherim Posted May 21, 2010 Author Posted May 21, 2010 Thanks for the quick reply and yes I have backups for my backups. Those voices in my head don't always know what they are talking about. You gave me the same answer I got from reading other posts. but it is always in the text portion what about the ones that are actually part of the code as in red below do I slash each one out? define('TEXT_INFORMATION', '<div style=\'float:right; text-align:center; padding-bottom: 15px; padding-left: 15px; padding-right: 13px;'><br /><br /><br /> <a style='color:gray; text-decoration:none; cursor:default;' href='http://www.trust-guard.com/Hacker-Safe-s/42.htm'target='_blank'><img style='border:none;'
germ Posted May 22, 2010 Posted May 22, 2010 If you don't do exactly what I said it won't work. To PHP it's all text. Not part text/part code. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
MrPhil Posted May 23, 2010 Posted May 23, 2010 You have the overall statement define('TEXT_INFORMATION', 'a whole bunch of text, enclosed in single quotes'); Wherever that "a whole bunch of text, enclosed in single quotes" includes an apostrophe/single quote ', it has to be escaped \'. All of them... it makes no difference if they're in your text or as HTML tags.
cherim Posted May 23, 2010 Author Posted May 23, 2010 You have the overall statement define('TEXT_INFORMATION', 'a whole bunch of text, enclosed in single quotes'); Wherever that "a whole bunch of text, enclosed in single quotes" includes an apostrophe/single quote ', it has to be escaped \'. All of them... it makes no difference if they're in your text or as HTML tags. Thank you so much for your all your help. Stupid confusion on my part , I know but the brain just didn't seem to be wrapping around it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.