How to call fckeditor in php please tell me anybody

    <? 
         include("/root_path_to/FCKeditor/fckeditor.php");
    
     //...  your code... possibly: <form> and/or DB connections and such
    
    
    $oFCKeditor = new FCKeditor('FCKeditor') ;
    $oFCKeditor->BasePath = '/FCKeditor/';
    $oFCKeditor->Width  = '100%' ;
    $oFCKeditor->Height = '500' ;
    $oFCKeditor->ToolbarSet = 'Default';
    $oFCKeditor->Value = 'DATA that will be edited goes in here';
    $oFCKeditor->Create() ;
    ?>
    

      Hi
      I am calling like this is it correct

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      
      
      <title>Untitled Document</title>
      </head>
      
      <body>
      <?php
      include("FCKeditor/FCKeditor/fckeditor.php") ;
      ?>
      
      <FORM id = "myForm" name "MyForm" method="post" action="FCKeditor/FCKeditor/_samples/php/sampleposteddata.php">
      <?php
      $desc =$_POST['FCKeditor1'];
      $oFCKeditor = new FCKeditor('FCKeditor1') ;
      $oFCKeditor->BasePath = 'FCKeditor/FCKeditor/';
      $oFCKeditor->Value = stripslashes( $_POST['FCKeditor1'] ) ;
      
      $oFCKeditor->Create() ;
      ?>
      
      ...... some of your stuff
      
      <INPUT id="EditorTEXT" type="hidden" name="EditorTEXT">
      
      <!-- #include virtual = "./MyEditor/Editor.shtml " -->
      
      ..... more of your stuff
      
      <INPUT  type="submit" value="anything" name="anything">
      
      </FORM>
      
      </body>
      </html>
      //editorcall.php
      
      and calling sampleposteddata.php
      
      
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <html>
      	<head>
      		<title>FCKeditor - Samples - Posted Data</title>
      		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      		<meta name="robots" content="noindex, nofollow">
      		<link href="../sample.css" rel="stylesheet" type="text/css" />
      	</head>
      	<body>
      
      	<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
      		<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
      			<td nowrap>Field Name&nbsp;&nbsp;</td>
      			<td>Value</td>
      		</tr>
      <?php
      
      if ( isset( $_POST ) )
         $postArray = &$_POST ;			
      
      else
         $postArray = &$HTTP_POST_VARS ;	
      
      foreach ( $postArray as $sForm => $value )
      {
      	$postedValue = htmlspecialchars( $_POST['FCKeditor1']  ) ;
      
      ?>
      			<tr>
      				<td valign="top" nowrap><b><?=$sForm?></b></td>
      				<td width="100%"><?=$postedValue?></td>
      			</tr>
      <?php
      print $sForm;
      }
      ?>
      		</table>
      	</body>
      </html>
      
      

        not able to view the image files uploaded in the fckeditor how to view those files in the sampleposteddata.php in the previous post please help me

          got the solution

          
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
          <html>
          	<head>
          		<title>FCKeditor - Samples - Posted Data</title>
          		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
          		<meta name="robots" content="noindex, nofollow">
          		<link href="../sample.css" rel="stylesheet" type="text/css" />
          	</head>
          	<body>
          
          	<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
          		<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
          			<td nowrap>Field Name&nbsp;&nbsp;</td>
          			<td>Value</td>
          		</tr>
          <?php
          
          if ( isset( $_POST ) )
             $postArray = &$_POST ;			
          
          else
             $postArray = &$HTTP_POST_VARS ;	
          
          foreach ( $postArray as $sForm => $value )
          {
          	$postedValue = $_POST['FCKeditor1'] ;
          
          ?>
          			<tr>
          				<td valign="top" nowrap><b><?=$sForm?></b></td>
          				<td width="100%"><?php echo stripslashes($postedValue);?></td>
          			</tr>
          <?php
          
          
          }
          
          ?>
          		</table>
          	</body>
          </html>
          
          
            Write a Reply...