Ok here's a completely new question
PHP Code:
if ($_REQUEST['do'] == 'editgarage')
{
// show the editor, fill it with the information I got from the database
// $data = $DB_site->fetch_Array() ...
construct_edit_toolbar($data['text'], 0,0,1,1);
}
if ($_REQUEST['do'] == 'edit')
{
// take what I entered to the editor and save it to the database
if (isset($_POST['WYSIWYG_HTML']))
{
require_once('./includes/functions_wysiwyg.php');
$text = convert_wysiwyg_html_to_bbcode($_POST['WYSIWYG_HTML'], 0);
}
else
{
$text = &$_POST['text'];
}
// ^ Iam not sure about that one.. How do I get the value from the editor to add it to my database?
// $_POST['WYSIWYG_HTML'] holds what has already been entered to the editor before
// $_POST['text'] is totally empty
}