에디터 여러개 사용하는방법
본문
<tr>
<th scope="row"><label for="co_title">콘텐츠 제목1</label></th>
<td><input type="text" name="co_title" value="<?php echo htmlspecialchars2($co['co_title']); ?>" id="co_title" required class="frm_input required" size="90"></td>
</tr>
<tr>
<th scope="row">내용</th>
<td><?php echo editor_html('co_content', get_text(html_purifier($co['co_content']), 0)); ?></td>
</tr>
<tr>
<th scope="row"><label for="co_title2">콘텐츠 제목2</label></th>
<td><input type="text" name="co_title2" value="<?php echo htmlspecialchars2($co['co_title2']); ?>" id="co_title2" class="frm_input" size="90"></td>
</tr>
<tr>
<th scope="row">내용2</th>
<td><?php echo editor_html('co_content2', get_text(html_purifier($co['co_content2']), 0)); ?></td>
</tr>
<tr>
<th scope="row"><label for="co_title3">콘텐츠 제목3</label></th>
<td><input type="text" name="co_title3" value="<?php echo htmlspecialchars2($co['co_title3']); ?>" id="co_title3" class="frm_input" size="90"></td>
</tr>
<tr>
<th scope="row">내용3</th>
<td><?php echo editor_html('co_content3', get_text(html_purifier($co['co_content3']), 0)); ?></td>
</tr>
<tr>
<th scope="row"><label for="co_title4">콘텐츠 제목4</label></th>
<td><input type="text" name="co_title4" value="<?php echo htmlspecialchars2($co['co_title4']); ?>" id="co_title4" class="frm_input" size="90"></td>
</tr>
<tr>
<th scope="row">내용4</th>
<td><?php echo editor_html('co_content4', get_text(html_purifier($co['co_content4']), 0)); ?></td>
</tr>
<tr>
<th scope="row"><label for="co_title5">콘텐츠 제목5</label></th>
<td><input type="text" name="co_title5" value="<?php echo htmlspecialchars2($co['co_title5']); ?>" id="co_title5" class="frm_input" size="90"></td>
</tr>
<tr>
<th scope="row">내용5</th>
<td><?php echo editor_html('co_content5', get_text(html_purifier($co['co_content5']), 0)); ?></td>
</tr>
<tr>
<th scope="row"><label for="co_title6">콘텐츠 제목6</label></th>
<td><input type="text" name="co_title6" value="<?php echo htmlspecialchars2($co['co_title6']); ?>" id="co_title6" class="frm_input" size="90"></td>
</tr>
<tr>
<th scope="row">내용6</th>
<td><?php echo editor_html('co_content6', get_text(html_purifier($co['co_content6']), 0)); ?></td>
</tr>
현재 이런식으로 폼 입력이 구성되어있는데
첫번째 co_content는 값이 잘 들어가는데
co_content2~co_content6은 값이 안들어가지네요.. db에 컬럼도 추가했고 longtext로 다 동일하고
$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);
$editor_html2 = editor_html('wr_content2', $content2, $is_dhtml_editor);
$editor_html3 = editor_html('wr_content2', $content2, $is_dhtml_editor);
$editor_html4 = editor_html('wr_content2', $content2, $is_dhtml_editor);
$editor_html5 = editor_html('wr_content2', $content2, $is_dhtml_editor);
$editor_html6 = editor_html('wr_content2', $content2, $is_dhtml_editor);
$editor_js = '';
$editor_js2 = '';
$editor_js3 = '';
$editor_js4 = '';
$editor_js5 = '';
$editor_js6 = '';
$editor_js .= get_editor_js('wr_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('wr_content', $is_dhtml_editor);
$editor_js2 .= get_editor_js('wr_content2', $is_dhtml_editor);
$editor_js2 .= chk_editor_js('wr_content2', $is_dhtml_editor);
$editor_js3 .= get_editor_js('wr_content3', $is_dhtml_editor);
$editor_js3 .= chk_editor_js('wr_content3', $is_dhtml_editor);
$editor_js4 .= get_editor_js('wr_content4', $is_dhtml_editor);
$editor_js4 .= chk_editor_js('wr_content4', $is_dhtml_editor);
$editor_js5 .= get_editor_js('wr_content5', $is_dhtml_editor);
$editor_js5 .= chk_editor_js('wr_content5', $is_dhtml_editor);
$editor_js6 .= get_editor_js('wr_content6', $is_dhtml_editor);
$editor_js6 .= chk_editor_js('wr_content6', $is_dhtml_editor);
위와 같이 wirte.php에 추가도 다 해줬는데 왜 값이 안들어갈까요 ㅜ
!-->!-->
답변을 작성하시기 전에 로그인 해주세요.