<?php function freeRTE_Preload($content) { // Strip newline characters. $content = str_replace(chr(10), " ", $content); $content = str_replace(chr(13), " ", $content); // Replace single quotes. $content = str_replace(chr(145), chr(39), $content); $content = str_replace(chr(146), chr(39), $content); // Return the result. return $content; } // Send the preloaded content to the function. $content = freeRTE_Preload("Soan thu gop y..."); echo "<div class='title' align='center'> Gửi thư góp ý cho trang web</div></br>\r\n"; if (isset($_SESSION['ErrMesFeedback']) and $_SESSION['ErrMesFeedback'] !== '') { echo "<center><span class=\"error\">" . $_SESSION['ErrMesFeedback'] . "</span></center>\r\n"; $_SESSION['ErrMesFeedback'] = ""; } ?> <table width="60%"> <tr> <td align="center"> <form onsubmit='return confirm("Gửi góp ý?");' method="post" action="post.php"> Email của bạn (không bắt buộc): <input type="text" name="senderEmail" > <input type="hidden" name="action" value="send"/> <!-- Include the Free Rich Text Editor Runtime --> <script src="<?php echo "incs/rte"; ?>
**********************************************************************/ --> <?php function freeRTE_Preload($content) { // Strip newline characters. $content = str_replace(chr(10), " ", $content); $content = str_replace(chr(13), " ", $content); // Replace single quotes. $content = str_replace(chr(145), chr(39), $content); $content = str_replace(chr(146), chr(39), $content); // Return the result. return $content; } // Send the preloaded content to the function. $content = freeRTE_Preload("<i>This is some <b><br>preloaded</b> content</i>"); ?> <script type="text/javascript"> function showValue() { alert(trim(document.getElementById(rteFormName).value)); } </script> <form method="get"> <!-- Include the Free Rich Text Editor Runtime --> <script src="../js/richtext.js" type="text/javascript" language="javascript"></script> <!-- Include the Free Rich Text Editor Variables Page --> <script src="../js/config.js" type="text/javascript" language="javascript"></script> <!-- Initialise the editor --> <table> <tr>