473,516 Members | 3,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting RTE editor Content

106 New Member
hi,
i have an FreeRTE editor used in my site but whenever i enter something in the TextArea of the editor is not showing in the DB , can anyone tell me what's wrong with my that Piece of Code

Expand|Select|Wrap|Line Numbers
  1.  function freeRTE_Preload($content) {
  2.  
  3. //    // Strip newline characters.
  4.  
  5.     $content = str_replace(chr(10), " ", $content);
  6.  
  7.     $content = str_replace(chr(13), " ", $content);
  8.  
  9. //    // Replace single quotes.
  10.  
  11.     $content = str_replace(chr(145), chr(39), $content);
  12.  
  13.     $content = str_replace(chr(146), chr(39), $content);
  14.  
  15. //    // Return the result.
  16.  
  17.     return $content;
  18.  
  19. }    
  20.  
  21. $content = freeRTE_Preload("") ; 
  22.  
  23. <script>
  24.  
  25. initRTE('<?echo $content ;?>', 'example.css');
  26.  
  27. </script>
How can i Get that Content Variable Through POST ??
Jan 7 '09 #1
5 2174
xNephilimx
213 Recognized Expert New Member
Just do a var_dump( $_POST ); and see what's in there.
Or see in the RTE editor code, where's the name of the textarea field (probably hidden) that keep sthe code. That's probably the one.

But it is easier to just do var_dump.

Regards,
Jan 7 '09 #2
jessy
106 New Member
Simply, U R GREAT !

I never Knew That Var_dump() function
Everyday i Learn Something New From You Gr8 People
I LOVE YOU bytes ;)
Jan 7 '09 #3
xNephilimx
213 Recognized Expert New Member
LOL, believe me, var_dump is a life saver.
Glad it helped!

Kind regards.
Jan 7 '09 #4
pbmods
5,821 Recognized Expert Expert
Heya, jessy.

More information is available here:

PHP: var_dump - Manual

print_r() is also a popular debugging function (PHP: print_r - Manual).
Jan 9 '09 #5
Atli
5,058 Recognized Expert Expert
@pbmods
My favorite PHP function :)
Expand|Select|Wrap|Line Numbers
  1. echo "<pre>", print_r($_POST, true), "</pre>";
Jan 9 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2130
by: monika | last post by:
I want to use a simple editor which has the capability of changing color or bold it... a very simple one in my application of asp/access. Can anyone suggest any such editor whereby I can use it? my purpose is to get story written by a student in the textbox/textarea of that editor from the database. The teacher highlights using the editor...
2
1847
by: David Winter | last post by:
I'm not a developer myself, but I am looking for something that maybe one of you guys - has done - knows about - would like to do - yes, I have a small budget for this. :) The basic idea: A browser-based editor for *static* HTML pages, like this:
71
6383
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's a step beyond Notepad (not a WYSIWYG tool). Thanks.
0
928
by: Yaseen | last post by:
Hi, I am trying to copy the content of word document to a DHMLEditor. When i copy and paste the content in the editor it shows only a placeholder for the images and it take different tags rather than html image tag or treates it as a oleobject. I want to copy the content and upload the images on the server and save the content by...
23
6960
by: SeaPlusPlus | last post by:
I want to convert large files of prose to xhtml and so I need a way to remove unwanted line wraps. So, I'm looking for a freebee editor that has the capability of searching for a single "carriage return/line feed" or "line feed/carriage return" and removing them. I quess what I need is an editor that allows non-printable characters in it's...
4
3014
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. &gt;strong&lt; instead of <strong> and so on. Is this a problem with the editor or something else? Does .Net convert it? I had to disable page validate request...
0
1278
by: Olivier Ishacian | last post by:
XMLmind XML Editor V3.0 Patch 1 can be downloaded from http://www.xmlmind.com/xmleditor/download.shtml _____________________________________________ V3.0 Patch 1 (December 2, 2005) Enhancements: ~~~~~~~~~~~~~
11
1821
by: Xah Lee | last post by:
Of interest: • The Semicolon Wars, by Brian Hayes. 2006. http://www.americanscientist.org/template/AssetDetail/assetid/51982 in conjunction to this article, i recommend: • Software Needs Philosophers, by Steve Yegge, 2006 http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
9
2606
Catalyst159
by: Catalyst159 | last post by:
I have a form which is used to calculate residential Floor Area Ratio (FAR). The form is structured into seven parts as follows: Part A: Maximum FAR and Floor Area: Part B: Gross Floor Area of the main floors of the main house: Part C: Gross Floor Area of the basement or cellar: Part D: Gross Floor Area of the attic:
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7405
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7574
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7547
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.