[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,643건 113 페이지
  • RSS
기술자료 목록
403
JavaScript   13945  2007-12-13 10:27  
402
MySQL   55885  2007-12-01 19:26 ~ 2017-10-23 16:45  
401
그누보드   11085  2007-12-01 19:16  
400
영카트   25685  2007-11-22 11:02  
399
HTML   14501  2007-11-21 19:29 ~ 2017-01-21 00:00  
398
그누보드   15399  2007-11-21 16:17  
397
JavaScript   23865  2007-11-20 22:03 ~ 2018-08-02 15:53  
396
그누보드   40547  2007-11-16 09:06 ~ 2018-06-27 17:45  
395
Editor   19825  2007-11-15 19:21  
394
Editor   17793  2007-11-15 19:18  
열람
Editor   21706  2007-11-15 18:58  
392
그누보드   12152  2007-11-12 12:38  
391
Linux   10837  2007-11-10 20:10 ~ 2022-03-23 07:46  
390
제로보드   19624  2007-11-09 17:08  
389
제로보드   12786  2007-11-09 17:06  
388
WindowsServer   29192  2007-11-09 14:02  
387
일반   22781  2007-11-09 13:47 ~ 2008-12-24 00:00  
386
전자결제   24209  2007-11-08 17:43 ~ 2019-01-11 19:20  
385
그누보드   12472  2007-11-06 18:07  
384
그누보드   9945  2007-11-06 17:56  

검색

해피정닷컴 정보

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

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