cheditor 글 수정시

$content = str_REPLACE("\"",""",$content);
echo "
<html>

<head>
<title>제목없음</title>
<meta name='generator' content='Namo WebEditor v4.0'>
<link rel='stylesheet' href='/css/defaultetc.css'>
<script src='/board/gnuboard4/cheditor5/cheditor.js'></script>
<script language='javascript'>
function submit_form()
{
  document.contentedit.contents.value = myeditor.outputHTML(); // 또는 myeditor.outputBodyHTML();
  document.contentedit.submit();
}
</script>
 </head>

<body bgcolor='white' text='black' link='blue' vlink='purple' alink='red'>
<form action='hotel_input.php3' method='post' name='contentedit'>
 <input type=hidden name='action' value='content_inputok'>
 <input type=hidden name='hotel_code' value=$hotel_code>
 <input type=hidden name='content_name' value=$content_name>
    <input type='hidden' name='contents' id='contents'>
<input type=hidden name=null>
<input type='hidden' name='paste' value='$content'>


    <table cellpadding='0' cellspacing='2' width='100%' bordercolordark='white' bordercolorlight='black'>
        <tr>
            <td  height='50' bgcolor='white'>
                <p ALIGN=CENTER>항목 수정</p>
            </td>
        </tr>
     <tr>
         <td>
 <script type='text/javascript'>
    var myeditor = new cheditor('myeditor');
    myeditor.width =  '95%' ;
    myeditor.height = 380;
    myeditor.pasteContent = true;
    myeditor.pasteContentForm = \"paste\";
    myeditor.editorToolbar = 'background-color:#f4f4f4;';
    myeditor.editorBorder  = '1px #696969 solid';
    myeditor.formName = 'contentedit';
    myeditor.run();
  </script>

 </td></tr>
        <tr>
            <td width='646' height='50' colspan='2' bgcolor='silver'>
                <p align='center'><input type='submit' name='submit' value='수정합니다'  onClick='submit_form();'>
                <input type='reset' name='cancle' value='다시합니다'></p>
            </td>
        </tr>
    </table>
</form>
</body>

</html>

이렇게 하는데 왜? 기존 입력된 내용이 안나올까요? ㅠㅠ

|

댓글 1개

$content = str_REPLACE("'","&#39;",$content);

이걸 추가해보세요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
12년 전 조회 2,404
12년 전 조회 1,086
12년 전 조회 2,862
12년 전 조회 1,095
12년 전 조회 1,099
12년 전 조회 1,091
12년 전 조회 2,495
12년 전 조회 1,102
12년 전 조회 1,085
12년 전 조회 1,152
12년 전 조회 1,110
12년 전 조회 1,091
12년 전 조회 1,089
12년 전 조회 1,081
12년 전 조회 1,376
12년 전 조회 1,100
12년 전 조회 1,065
12년 전 조회 1,636
12년 전 조회 1,094
12년 전 조회 1,085
12년 전 조회 1,157
12년 전 조회 1,147
12년 전 조회 1,095
12년 전 조회 1,430
12년 전 조회 1,082
12년 전 조회 1,194
12년 전 조회 1,077
12년 전 조회 1,124
12년 전 조회 1,142
12년 전 조회 6,273
🐛 버그신고