• 목록
  • 아래로
  • 위로
  • 1
  • 260578
  • 조회 수 184
(상부 Style 생략)
<?php
$naeyong = htmlspecialchars($_POST['contents']);
$chamgo = htmlspecialchars($_POST['age']);
?>
<script type="text/javascript">

// 아이프레임 세로 자동 리사이징 (세로값을 자동으로 추출하여 스크롤바 생기지 않음)

function resizeFrame(frm) {

frm.style.height = "auto";

contentHeight = frm.contentWindow.document.body.scrollHeight;

frm.style.height = contentHeight + 4 + "px";

}

</script>
</head>

<body>
<?php
$name = $_POST['name'];
if(!isset($name)){
$name = "frontpage";
}
?>
<section id="m_main">
<span class="tbar">
<ul>
<li>
<form action="do.php" method="post">
<input type="hidden" name="less" value="<?php echo $name;?>" />
<input type="submit" value="✍" />
</form>
</li>
   </ul>
</span>
<iframe src="d/<?php echo $name; ?>.html" name="m_view" width="1000px" height="0px" marginwidth="0px" marginheight="0px" frameborder="no" scrolling="no" onload="resizeFrame(this)">
   </iframe>
</section>
   </div>
</body>

</html>


[page.php]




<html>
    <head>
        <title>진행중...</title>
        <meta charset="UTF-8" />
    </head>
    <body>
<?php echo $_POST['name'];?>

<?php
$_POST['less'] = $title;
?>
<form action="save.php" method="post">
<fieldset>
    <legend>편집</legend>
        <textarea name="contents" cols="30" rows="10">
        <?php
        $fp = fopen("d/$title.html", 'r');
        $content = fread($fp, filesize("$title.html"));
        echo $content;
        fclose($fp);
        ?>    
</textarea>
</fieldset>
<p><input type="submit" /></p>
</form>
<p><?php echo $title;?></p>
</body>
</html>


[do.php]



<?php
$_POST['contents'] = $dgfd;
echo $dgfd;
?>


[save.php]





Post.php에서 열려있는 d 폴더의 html 파일을 그대로 가져와서 do.php에서 불러와서 편집한 다음 save.php에서 저장된 내용을 보려고 합니다.


그러나 실행되지 않더군요, 문제가 무엇인가요?




작성자
260578 58 Lv. (60%) 274780/278480EXP

반가워요!

댓글 1

title: 황금 서버 (30일)humit
profile image

일단 save.php가 아래처럼 되어야 할 것 같네요
<?php
$dgfd = $_POST['contents'];
echo $dgfd;
?>

comment menu
2018.10.28. 10:29

신고

"humit님의 댓글"

이 댓글을 신고 하시겠습니까?

권한이 없습니다.
번호 제목 글쓴이 날짜 조회 수
공지 시스템 점검 작업 완료 안내 10 마스터 24.09.05.16:25 1019
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 23.01.14.02:23 7773
공지 [필독] 질문하는 방법 17 마스터 18.02.23.03:09 4804
106 phpMyAdmin 접속시 mysqli_real_connect(): (HY000/1045): Access denied for user '000000'@'localhost' (using password: YES) 4 동파육 22.08.31.00:59 193
105 레이아웃 로그인시 백지현상? 1 핫슈 18.04.07.21:12 193
104 무슨 문제일까요 3 image 260578 18.03.03.09:32 193
103 동영상 플레이어 2개 이상 깔때 코덱 질문드립니다. 2 크로스하트 18.03.02.18:04 193
102 음..... 3 박재식품 18.02.26.21:41 193
101 동영상 썸네일 만드는 것 관련하여 질문 드립니다. 2 이니스프리 21.02.20.14:51 192
100 노트9 케이스 추천을 다시 부탁드립니다 ㅠㅠ 11 이니스프리 20.05.22.21:24 192
99 원격제어와 스트리밍을 막는 프로그램? 1 hidriqi 21.04.24.03:32 191
98 DB Charset 관련해서 질문 드려요! 4 이니스프리 20.10.01.22:22 191
97 아마 당분간은 호스팅 쓸 일이 없을거 같은데 등록 취소 가능한가요? 2 abnoeh 18.09.16.09:24 191
96 라라벨 설치 가이드 없을까요? 1 워시퍼 21.10.27.14:55 190
95 읔! 스포어 PW는 어디서 바꿔야할까요? 1 title: 도밥위키!Dobob 18.02.26.08:24 190
94 카카오 로그인 api처럼 위챗 로그인 api 사용해보신분 계신가요? asdf1234 21.03.03.16:04 189
93 xlsx 파일로 된 DB백업 데이터를 가져오기로 DB에 넣으려면 어떻게 해야할까요? 4 image 동파육 22.08.31.01:49 188
92 500 에러 4 wikiowner 20.12.12.10:05 188
91 이미지 업로드시 리사이징 없이 업로드 방법있나요? 5 슬기 18.10.03.18:04 188
90 관리자님 질문있습니다. ssh 관련해서요.. 1 isfalse 18.09.16.01:51 188
89 SFU ssh 계정으로 ssh 접속이 안됩니다 8 wikiowner 21.01.06.13:36 187
88 [도메인 설정하기] 질문 2 image swimmie 18.08.28.00:57 187
87 사이트 정보 등록 1 없음 19.01.05.09:58 186