Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:15:36 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Outputting HTML in a code section of a page  (Read 1112 times)
POPDUM

Offline Offline

Posts: 23


« on: December 08, 2007, 02:47:45 PM »

Hi,

I am working on a new webpage. The end-user wants to use an editor (FCKEditor, e.g.) to update a new image and text (weekly to monthly). This has to appear on many pages. In order that he should update once, I am using a code section in the other pages to display the contents of the WYSIWYG section on the Home page.

Everything is fine till I actually display teh content using "echo $content;". It only displays the entire HTML string; I tried to surround $content with single and double quotes, but no change. However, when I echo the literal string contained in $content, it works, like :

echo '<p align="center"><img class="" height="223" alt="" width="320" align="left" src="http://www.pif.at/media/fi_3.gif" />&nbsp;<font size="5"><font color="#800000"><strong>&quot;HAUS DES MONATS!!!!</strong></font></font></p> <p>&nbsp;<strong><font color="#ff0000">Great location:</font> </strong>Reisingergasse 8/8</p> <p>&nbsp;<font color="#ff0000"><strong>District:</strong></font> 10th</p> <p>&nbsp;<font color="#ff0000"><strong>Public Transport Connections:</strong></font> Great</p> <p>&nbsp;<font color="#ff0000"><strong>Price:</strong></font> Only &euro; 100 million!</p> <p>&nbsp;<font color="#ff0000"><strong>Available: </strong></font>immediately</p>';

How can I display the content that it shows what I want it to show?

Thanks for your help
Logged
erikp01

Offline Offline

Posts: 44



« Reply #1 on: December 08, 2007, 03:33:49 PM »

Popdum,

http://slink2.no-ip.info/pages/website-baker-info/module-mods/html-module.php

This is a speciale module for html code section.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #2 on: December 08, 2007, 09:27:54 PM »

and check your other post ... since it is always the same people answering here (a handful actually) three is no need to double post ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!