Solved

CKEditor not POSTing correctly

Posted on 2013-06-27
3
277 Views
Last Modified: 2013-06-27
Hi Experts:
I have a form where I am inputting several fields and using the CKEditor for formatting.  The input fields operate correctly (allowing me to input formatting to the text field), however, when I POST the form, I lose the formatting (it does not show up when I echo the POST value).  Further, when I store the information in my MYSQL database, the words are there, but not the formatting.  I've attached the form page as well as the page POSTed to.  Any help would be greatly appreaciated!CreateCustomProposal-NEO-2012.phpCreateCustomProposal-NEO-2012-1.php
0
Comment
Question by:sully1958
3 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39282473
The problem is you are using php to strip out html with this bit of code

$Item1=strip_tags(trim($_POST['Item1']));
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39282477
TL;DR.  But maybe all of the strip_tags() statements has something to do with it.  Can you please help us by creating the SSCCE to illustrate the problem in a way that does not require analysis of hundreds of lines of code?
0
 

Author Closing Comment

by:sully1958
ID: 39282515
Thank you so much!!!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question