[FCKEditor 2.3] [ASP] 실전 매뉴얼 > 기술자료 | 해피정닷컴

[FCKEditor 2.3] [ASP] 실전 매뉴얼 > 기술자료

본문 바로가기

사이트 내 전체검색

[FCKEditor 2.3] [ASP] 실전 매뉴얼 > 기술자료

Editor [FCKEditor 2.3] [ASP] 실전 매뉴얼

페이지 정보


본문

### write.asp

<form name="form" method="post" action="write_ok.asp" ENCTYPE="MULTIPART/FORM-DATA">
<table border="0" cellpadding="0" cellspacing="0">
<!--#include virtual="/FCKeditor/fckeditor.asp" -->
  <tr>
    <td>작성자</td>
    <td><input name="name" type="text"></td>
  </tr>
  <tr>
    <td>제목</td>
    <td><input name="title" type="text" value="<%=Server.HTMLEncode( Request.Form(title) )%>"></td>
  </tr>
  <tr>
    <td>내용</td>
    <td>
<!--#include virtual="/FCKeditor/fckeditor.asp" -->
<%
 Dim oFCKeditor

 Set oFCKeditor = New FCKeditor
 oFCKeditor.BasePath = "/FCKeditor/"
 oFCKeditor.Create "content"
 oFCKeditor.Width = 650
 oFCKeditor.Height = 400
%></td>
  </tr>
  <tr><td><input type="submit" value="Submit"></td></tr>
</table>
</form>



### edit.asp
<%
    searcha = request("searcha")
    searchb = request("searchb")
    GotoPage = Request("GotoPage")
    uid = request("uid")
    idx = request("idx")

    sql = "select title,content,name,email,pwd from tb_pds where idx="&request("idx")
    set rs=db.execute(sql)
%>
<form name="form" method="post" action="edit_ok.asp" ENCTYPE="MULTIPART/FORM-DATA">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>작성자</td>
    <td><input name="name" type="text" value="<%=Server.HTMLEncode( rs("name") )%>"></td>
  </tr>
  <tr>
    <td>제목</td>
    <td><input name="title" type="text" value="<%=Server.HTMLEncode( rs("title") )%>"></td>
  </tr>
  <tr>
    <td>내용</td>
    <td>
<!--#include virtual="/FCKeditor/fckeditor.asp" -->
<%
 Dim oFCKeditor

 Set oFCKeditor = New FCKeditor
 oFCKeditor.BasePath = "/FCKeditor/"
 oFCKeditor.Width = 650
 oFCKeditor.Height = 400
 oFCKeditor.value = rs("content")
 oFCKeditor.Create "content"
%></td>
  </tr>
  <tr><td><input type="submit" value="Submit"></td></tr>
</table>
</form>




◆ FCKeditor 값 전송시 처리방법
 replace함수를 써서 " -> '  으로 변환한다.
 content = replace(Request.Form("FCKeditor1"),"""","'")
 
 ps) FCKeditor는 입력값이 html변환시 내용중 "은 "로 변환되어 전송받은 페이지에서 정상적으로 보여지나, 입력값중에 태그에 의해 자동생기는 "은 전송받은 페이지에서 그대로 넘겨받아 해당페이지의 태그 속성값과 충돌이 생겨 깨진다. 이를 위해 넘기는 "은 '으로 변환한다.
 
◆ 전송받은 페이지에서 한글깨짐 처리방법
 [%@ CodePage='949'  Language="VBScript"%] 삽입



참조사이트
http://tong.nate.com/kwangsuya/34447055 
https://www.happyjung.com/bbs/board.php?bo_table=lecture&wr_id=967

댓글목록

등록된 댓글이 없습니다.


Total 2,636건 113 페이지
  • RSS
기술자료 목록
396
JavaScript   23867  2007-11-20 22:03 ~ 2018-08-02 15:53  
395
그누보드   40569  2007-11-16 09:06 ~ 2018-06-27 17:45  
394
Editor   19827  2007-11-15 19:21  
393
Editor   17795  2007-11-15 19:18  
열람
Editor   21708  2007-11-15 18:58  
391
그누보드   12157  2007-11-12 12:38  
390
Linux   10838  2007-11-10 20:10 ~ 2022-03-23 07:46  
389
제로보드   19627  2007-11-09 17:08  
388
제로보드   12789  2007-11-09 17:06  
387
WindowsServer   29194  2007-11-09 14:02  
386
일반   22783  2007-11-09 13:47 ~ 2008-12-24 00:00  
385
전자결제   24212  2007-11-08 17:43 ~ 2019-01-11 19:20  
384
그누보드   12474  2007-11-06 18:07  
383
그누보드   9948  2007-11-06 17:56  
382
그누보드   11672  2007-11-06 17:56  
381
그누보드   11239  2007-11-06 17:49  
380
그누보드   11066  2007-11-06 17:38  
379
MySQL   12579  2007-11-02 10:01  
378
그누보드   10751  2007-11-01 15:23  
377
영카트   11973  2007-10-30 16:00  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2025 해피정닷컴. All Rights Reserved.