Hello..
so i have now created my personalized toolbar with ckeditor running correctly.. i write some text into the box, for example this following text:
1) Hello, i am Simon
and i hit Submit..
this loads my sample_postdata which i edited so that i will display the last added messages and at the same time add into my database into a text field called articolo the $postedValue so i receive the following output into the sample_postedata:
Field Name Value
editor1 <p> <u>Hello</u>, i am <strong>Simon</strong></p>
i also check into mysql database and inside my table under the articolo text field i have this:
<p> <u>Hello</u>, i am <strong>Simon</strong></p>
and when i try to post onto a new page with a query the field articolo i receive this message:
<p> <u>Hello</u>, i am <strong>Simon</strong></p>
how can i make it so that i can receive a formatted test like shown on 1)?
so i have now created my personalized toolbar with ckeditor running correctly.. i write some text into the box, for example this following text:
1) Hello, i am Simon
and i hit Submit..
this loads my sample_postdata which i edited so that i will display the last added messages and at the same time add into my database into a text field called articolo the $postedValue so i receive the following output into the sample_postedata:
Field Name Value
editor1 <p> <u>Hello</u>, i am <strong>Simon</strong></p>
i also check into mysql database and inside my table under the articolo text field i have this:
<p> <u>Hello</u>, i am <strong>Simon</strong></p>
and when i try to post onto a new page with a query the field articolo i receive this message:
<p> <u>Hello</u>, i am <strong>Simon</strong></p>
how can i make it so that i can receive a formatted test like shown on 1)?

Re: Help with outputs!
Re: Help with outputs!
Attachments:
Re: Help with outputs!
Re: Help with outputs!
You should get non-html markup for markup syntax.
IE you should see:
<p>Hello World</p>
If you confirm this, then it is what you are doing in your script that is converting the html entities?
Re: Help with outputs!
<?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 $id = Trim(stripslashes($_POST['id'])); // echo "ID:" . $id; // Connection to the DB $dbhost = 'localhost'; $dbuser = 'usernamel'; $dbpass = 'password'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'dbname'; mysql_select_db($dbname); // Insert into the DB // $query = "INSERT INTO fck_data (data) VALUES ('$postedValue')"; $query = "UPDATE sub SET `code` = '$postedValue' WHERE `id` = '$id'"; mysql_query($query) or die("Couldn't update: ".mysql_error()); exit; } ?>