Solved

CKEditor not POSTing correctly

Posted on 2013-06-27
3
274 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 108

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hidden Field Value 10 34
Instering to MySQL table 5 22
Bootstrap Columns not Side-by-Side 3 15
Two RegEx conditions in one 3 17
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now