I'd be grateful if you would kindly advise me? I have a php guestbook on my website, it's at http://www.costasolr...om/costa_gb.php. I've disabled the automatic posting feature because of spammers so now manually edit the .inc entries file and file counter file when guests send me a testimonial to add to the guestbook.
My difficulty is that when I type in the guestbook entry into the .inc file and upload it, no paragraphs or new lines are shown, the text all runs together.
So far, I have tried adding <br><p> and <pre> with no result at all, and when I add either "\n" or '\n' into the code this is the error message the webpage shows (line 140 being where I've added either form of \n):
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/h/y/p/hypnos7/html/entries.inc on line 140 Parse error: parse error, unexpected T_STRING, expecting ')' in /home/content/h/y/p/hypnos7/html/entries.inc on line 140.
Here is the most recent entry exactly as I added it to the entries.inc file, you can see how it shows up on the webpage at http://www.costasolr...om/costa_gb.php. Would you kindly advise how I might get the paragraphs or new lines to show?
<? $entry47 = Array ( 'Name' => 'Bernard Byrne', 'E-Mail' => '[email protected]', 'Posted' => 'Thursday 24th September 2009', 'Site URL' => '', 'Message' => 'Many thanks for the use of your holiday apartment in Cabopino. We all arrived home safe and rested after a very enjoyable holiday, the apartment was perfect for holiday requirements for all our family. We particularly loved the large terrace and were pleasantly surprised that the lovely garden and pool were literally on our doorstep... we had the pool to ourselves 8 out of 9 days! Cabopino is really lovely, the marina is beautiful and the beach is the best in the area. I don\'t like to drive on the "other side of the road" but this didn\'t cause a problem as the bus service is excellent and very cheap, we visited nearby Calahonda, Fuengirola and beautiful Marbella all by bus. The airport pick up service was great and Sue and Gary were both friendly and informative, a big thank you to a nice couple! The apartment rental represented great value for money and I would recommend same to any family considering the area for a pleasant, safe and enjoyable holiday in the sun. Kind Regards, Bernard, Annette and Jessica. Kildare, Ireland. '); ?>
Many thanks for your help,
Best wishes from Ireland,