Java Script text editor help needed

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jo1234la
Forum Newbie
Posts: 11
Joined: Wed Feb 03, 2010 11:53 am

Java Script text editor help needed

Post by jo1234la »

Hello,

I am working on a site that utilizes a Javascript based Rich Text Editor. My goal is to create the text then export the html content to MySQL via PHP. I know it can be done but honestly I am a bit lost. I have gotten as far as to insert the record on click but none of the text goes with it. so I am familiar with the basic connection process and such.

What I want to know is what function / process am I missing to get the onsubmit /onclick event to send the text to the MySQL database. I am stumped if any of you geniuses have any ideas please help a newbie out. Thanks in advance!
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Java Script text editor help needed

Post by AbraCadaver »

Why use onclick() or onsubmit(), just use the traditional submit. Then the textarea name will be available in the PHP $_POST array. What is the name of the textarea and where is your PHP code?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
jo1234la
Forum Newbie
Posts: 11
Joined: Wed Feb 03, 2010 11:53 am

Re: Java Script text editor help needed

Post by jo1234la »

Well the key is I need Rich text capability and Text Area does not offer that ability to insert Rich Text from the client page. With Javascript text editors I can edit and upload Rich Text versus just text.

if you know of a way to make rich text load into a text area do let me know. I would be much appreciative..
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Java Script text editor help needed

Post by AbraCadaver »

That's how I thought you were doing it. How were you doing it?

viewtopic.php?f=1&t=113280#p595153
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply