Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1060349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:18:51+00:00 2026-05-16T18:18:51+00:00

i am new to this FCKeditor,i am using below mentioned code , i am

  • 0

i am new to this FCKeditor,i am using below mentioned code , i am formatting the text in the text editor and display the same text using the echo statement but it disply only the plain text(without formatting) how to i display the text with formated syntax. please guide me .thanks in advance

 <?php
    include("fckeditor.php");

    $sBasePath = $_SERVER['PHP_SELF'] ;
            $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
            $oFCKeditor = new FCKeditor('FCKeditor') ;
            $oFCKeditor->BasePath   = $sBasePath ;
            $oFCKeditor->Value      = $ing ;
            $oFCKeditor->Create() ;
            ?>

<html> 
<head>

<title>Editor</title>
</head>
<body>
<form name="frmedit" id = "frmedit" method="post" enctype="multipart/form-data"> 
Title &nbsp;:&nbsp;<input type="text" name="txttitle" id = "txttitle">

<br>
<br>
<input type="submit" name="subsubmit" id="subsubmit" value="SUBMIT">
</form> 
</body>
</html>

<?php
if($_POST["subsubmit"]=="SUBMIT"){
$part2 = $_POST["FCKeditor"];
echo $part2;
}
?>
  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:18:51+00:00Added an answer on May 16, 2026 at 6:18 pm

    [Answer Updated]

    You need to put your FCKEditor code inside the <form> </form> tags and not at the top. Also, the $_POST["FCKEditor"] needs to be put in $oFCKeditor->Value variable.

    Do it like this: It is working fine on my machine and displays the formatted HTML inside the FCKEditor textarea:

    <html> 
    <head>
    
    <title>Editor</title>
    </head>
    <body>
    <form name="frmedit" id = "frmedit" method="post" enctype="multipart/form-data"> 
    Title &nbsp;:&nbsp;<input type="text" name="txttitle" id = "txttitle">
    <?php
        include("fckeditor.php");
    
        $sBasePath = $_SERVER['PHP_SELF'] ;
                $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
                $oFCKeditor = new FCKeditor('FCKeditor') ;
                $oFCKeditor->BasePath   = $sBasePath ;
                $oFCKeditor->Value      = $_POST["FCKeditor"] ;
                $oFCKeditor->Create() ;
                ?>
    <br>
    <br>
    <input type="submit" name="subsubmit" id="subsubmit" value="SUBMIT">
    </form> 
    </body>
    </html>
    

    Tip: View more information and complete guide here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to this technology. I searched a lot but cant find any
I'm new to this forum, but I've seen it a few times while trying
I am new on this stuff and this could be a simple question, but
Since I'm pretty new this question'll certainly sound stupid but I have no idea
I am new this sharepoint development and i have task in hand to do
new to this site so sorry if this question is inappropriate, or in the
New to this library (no more familiar with BeautifulSoup either, sadly), trying to do
Im new to this.I have a cron file called xml.php and i want to
Why does this: (new[]{1,2,3}).Cast<decimal>(); result in an InvalidCastException: Specified cast is not valid.
Im new on this project and am going to write, what i thought was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.