Also, wenn ich den alert Befehl ausführen lasse, dann kommt das PopUp Kastl, es steht aber nix drinnen.
Danke auf jeden Fall für den geposteten Code.
Ich habe jetzt folgendes probiert, um die Variable sValue in eine PHP Variable zu bekommen.
Code:
<form action="" method="post" >
<script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '' ;
oFCKeditor.Create() ;
var description = FCKeditorAPI.GetInstance("description10");
var sValue = description.GetHTML();
document.getElementById("hdesc10").value = sValue;
//-->
</script>
<br />
<input type="submit" value="Submit" name="absenden" />
<?php
if($_POST['absenden'])
{
echo $_POST[sValue];
}
?>
</form>
Aber das funktioniert leider auch nicht wirklich. Leider haperts an dieser Stelle bei mir beim JavaScript/PHP Zusammenspiel.
Ich möchte die Einträge nach dem Absenden nämlich in eine Datenbank speichern.
Vielen Dank für deine Hilfe.
grüsse, jellyfish