Hey all
I am probably being really dumb but i cant for the life of me figure out how to submit all the information that is in the RTE in a form.
At the moment i have :
and in process.php i have :
Once i have submitted the form all i get is the text from the RTE but no links to the images that i have inserted.
Is there a way that i can form submit the exact code that is shown in the source view? As in the styles, links, p tags every bit of html that is shown in that source view.
Many Thanks
Graeme
I am probably being really dumb but i cant for the life of me figure out how to submit all the information that is in the RTE in a form.
At the moment i have :
<form method="post" action="process.php">
<p>
My Editor:<br />
<?php
include_once 'ckeditor/ckeditor.php';
include_once 'ckfinder/ckfinder.php';
$ckeditor = new CKEditor();
$ckeditor->basePath = 'ckeditor/';
$ckfinder = new CKFinder();
$ckfinder->BasePath = 'ckfinder/';
$ckfinder->SetupCKEditorObject($ckeditor);
$ckeditor->editor('CKEditor1');
?>
and in process.php i have :
<?php $editor_data = $_POST[ 'CKEditor1' ]; echo $editor_data; ?>
Once i have submitted the form all i get is the text from the RTE but no links to the images that i have inserted.
Is there a way that i can form submit the exact code that is shown in the source view? As in the styles, links, p tags every bit of html that is shown in that source view.
Many Thanks
Graeme

Re: Directly transfer source
<?php if ( isset( $_POST ) ) $postArray = &$_POST ; // 4.1.0 or later, use $_POST else $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS foreach ( $postArray as $sForm => $value ) { if ( get_magic_quotes_gpc() ) $postedValue = htmlspecialchars( stripslashes( $value ) ) ; else $postedValue = htmlspecialchars( $value ) ; ?> <tr> <th style="vertical-align: top"><?php echo $sForm?></th> <td><pre><?php echo $postedValue?></pre></td> </tr> <?php } ?>