내용이 출력이 안됩니다.
본문
< 111 > 내용이 출력이 안됩니다.
원인이 무엇인지요?
감사합니다.
< 111 > =================================================================================
<div class="wr_content <?php echo $is_dhtml_editor ? $config['cf_editor'] : ''; ?>">
<?php if($write_min || $write_max) { ?>
<!-- 최소/최대 글자 수 사용 시 -->
<p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
<?php } ?>
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
<?php if($write_min || $write_max) { ?>
<!-- 최소/최대 글자 수 사용 시 -->
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
<?php } ?>
</div><!-- wr_content -->
< 222 >=================================================================================
<tr>
<th scope="row"><label for="wr_11"></label></th>
<td class="wr_content">
<?php echo editor_html("wr_11", $write['wr_11'], $is_dhtml_editor); ?>
</td>
</tr>
< 333 >=================================================================================
<tr>
<th scope="row"><label for="wr_12"></label></th>
<td class="wr_content">
<?php echo editor_html("wr_12", $write['wr_12'], $is_dhtml_editor); ?>
</td>
</tr>
답변 4
일단은 해당 코드에 사용된 변수들의 값이 잘 출력되는지 체크해 보세요.
최소 최대 글자 설정은 하셨나요?
sinbi 님, 최초의 입력은 됩니다. 그리고 출력이 됩니다.
그런데 수정을 하려면 수정이 안되고 최초의 입력한 것이 계속 출력이 됩니다.
수정하는 부분에 문제가 있는 것 같습니다.
에디터를 사용하면 수정이 안되고, 에디터를 체크 하지 않고 하면 수정이 되네요.
에디터에 문제가 있는 것 같습니다.
블량숑, sinbi, 엑스엠엘님 답변 감사합니다.
아래의 추가 했는데 되네요. 왜 되는지는 모르겠어요.
if ($w == 'u') {
$wr_content = get_text(html_purifier($write['wr_content']), 0);
$wr_11 = get_text(html_purifier($write['wr_11']), 0);
$wr_12 = get_text(html_purifier($write['wr_12']), 0);
$wr_13 = get_text(html_purifier($write['wr_13']), 0);
}
===============
function fwrite_submit(f)
{
<?php echo get_editor_js("wr_content"); ?>
<?php echo chk_editor_js("wr_content"); ?>
<?php echo get_editor_js("wr_11"); ?>
<?php echo chk_editor_js("wr_11"); ?>
<?php echo get_editor_js("wr_12"); ?>
<?php echo chk_editor_js("wr_12"); ?>
<?php echo get_editor_js("wr_13"); ?>
<?php echo chk_editor_js("wr_13"); ?>
~~~~~