ok, dik, ale teraz zase mi nechce nieco fungovat .....
tu je kod :
Kód:
<form name="RTEDemo" action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST" onsubmit="return submitForm();">
<script language="JavaScript" type="text/javascript">
<!--
function submitForm() {
//make sure hidden and iframe values are in sync before submitting form
//to sync only 1 rte, use updateRTE(rte)
//to sync all rtes, use updateRTEs
updateRTE('rte1');
//updateRTEs();
alert("rte1 = " + document.RTEDemo.rte1.value);
//change the following line to true to submit form
return false;
}
//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("images/", "", "");
//-->
</script>
<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
<script language="JavaScript" type="text/javascript">
<!--
//Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
writeRichText('text', 'OMG', 400, 200, true, false);
//-->
</script>
<p><input type="submit" name="submit" value="Submit"></p>
</form>
ale keď niečo do ňho píšem, vždy sa mi zapíŠe do sql to slovo OMG ....
ako mam urobiť, aby sa mi uložilo to, čo napíšem do tohto editoru ?