par
lefox88500 » 22 juil. 2005, 10:53
Bonjour j'ai un petit problème qui depasse ma comprehension
quand je met le code textarea suivi du code pour fckeditor aucun probleme :
<form action="liste_news.php" method="post">
<p>Titre :
<input type="text" size="30" name="titre" value="<? echo $titre; ?>" />
</p>
<p> Contenu :<br />
<textarea name="contenu" cols="50" rows="10">
<? echo $contenu; ?>
</textarea>
<br />
<input type="hidden" name="id_news" value="<? echo $id_news; ?>" />
<input name="submit" type="submit" value="Envoyer" />
</p>
</form>
<a href="index.php">retour à la page principale</a>
<?php
include("FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('contenu') ;
$oFCKeditor->BasePath = 'FCKeditor/';
$oFCKeditor->Value = 'taper votre texte ici :';
$oFCKeditor->Width = '800';
$oFCKeditor->Height = '350' ;
$oFCKeditor->Create() ;
?>
</td>
</tr>
</table>
<h3> </h3>
</body>
</html>
par contre quand je met le code fckeditor suivi du textarea ben sa n'affiche pas ce que je tape dans fckeditor dans le textarea (j'hallucine lol)
<form action="liste_news.php" method="post">
<p>Titre :
<input type="text" size="30" name="titre" value="<? echo $titre; ?>" />
</p>
<p> Contenu :<br />
<?php
include("FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('contenu') ;
$oFCKeditor->BasePath = 'FCKeditor/';
$oFCKeditor->Value = 'taper votre texte ici :';
$oFCKeditor->Width = '800';
$oFCKeditor->Height = '350' ;
$oFCKeditor->Create() ;
?>
<textarea name="contenu" cols="50" rows="10">
<? echo $contenu; ?>
</textarea>
<br />
<input type="hidden" name="id_news" value="<? echo $id_news; ?>" />
<input name="submit" type="submit" value="Envoyer" />
</p>
</form>
<a href="index.php">retour à la page principale</a>
</td>
</tr>
</table>
<h3> </h3>
</body>
</html>
merci d'avance