$upit = "insert into novosti(naslov, tekst) values ('$naslov', '$tekst')";
Ne znam kako da mi promenjiva $tekst bude tekst unešen u FCKeditor.
Forma za unos mi izgleda ovako.
Code:
<form action="novosti.php" method="POST">';
echo 'Naslov: <input name="naslov" type="text" size="60" maxlength="60"><br><br>';
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKConfig->CustomConfigurationsPath = 'fckconfig.js' ;
$oFCKeditor->Width = '75%' ;
$oFCKeditor->Height = '250' ;
$oFCKeditor->Value = 'tekst' ;
$oFCKeditor->Create() ;
echo '<input name="submit" type="submit" value="Dodaj novost">';
echo '</form>
<form action="novosti.php" method="POST">';
echo 'Naslov: <input name="naslov" type="text" size="60" maxlength="60"><br><br>';
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKConfig->CustomConfigurationsPath = 'fckconfig.js' ;
$oFCKeditor->Width = '75%' ;
$oFCKeditor->Height = '250' ;
$oFCKeditor->Value = 'tekst' ;
$oFCKeditor->Create() ;
echo '<input name="submit" type="submit" value="Dodaj novost">';
echo '</form>
Znači Naslov ima vrednost = naslov a koju vrednost će imati text iz FCKeditora?