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!
Java Script text editor help needed
Moderator: General Moderators
- 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
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.
Re: Java Script text editor help needed
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..
if you know of a way to make rich text load into a text area do let me know. I would be much appreciative..
- 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
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.