• 목록
  • 아래로
  • 위로
  • 1
  • 260578
  • 조회 수 165
(상부 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님의 댓글"

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

권한이 없습니다.
번호 제목 글쓴이 날짜 조회 수
공지 [작업 완료] 설 명절 맞이 서버 업데이트 안내 3 마스터 24.02.11.17:21 1046
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 23.01.14.02:23 4720
공지 [필독] 질문하는 방법 17 마스터 18.02.23.03:09 4482
106 나무마크 다운 방법 6 맛수타 17.06.19.06:58 352
105 SSL문제.. 10 Hanam09 17.06.18.18:39 246
104 도메인 접속오류 1 ljhw0512 17.06.18.17:15 296
103 우수회원 6 alstn 17.06.18.14:41 259
102 도와줘요 3 Hanam09 17.06.18.13:26 289
101 호스팅 계정 생성할때.. 자신이 원하는 도매인은 어떻게 설정할 수 있나요? 5 Hanam09 17.06.17.13:07 265
100 프로필 설정 이미지 크기 얼마정도 하면대나요? 3 핫슈 17.06.16.04:43 358
99 바로가기 링크#걸어도 펼침메뉴가 9 핫슈 17.06.12.22:36 262
98 사이트 설정 중 도움 요청 드립니다. 1 아그래 17.06.11.20:47 280
97 500 오류 2 맛수타 17.06.09.05:59 258
96 도메인 접속 no 5 맛수타 17.06.08.06:03 276
95 도메인 연결 2 파란꽃 17.06.06.17:31 293
94 xe 에서 member_srl 별로 게시글을 가져오는 위젯이 있나요? 5 LuisK 17.05.28.17:16 256
93 위키 연동법 3 맛수타 17.05.28.17:04 322
92 미디어위키 설치법 6 image 맛수타 17.05.25.17:59 633
91 호스팅 트래픽 초과되면 어떻게 해야하나요?? 8 title: 도밥위키!Dobob 17.05.24.18:43 262
90 미디어위키와 XE를 같이 사용할때 XE의 head,foot에 위키 스킨을 어떻게 입히죠? 3 경계인 17.05.21.20:37 326
89 늦었네요. 배치파일 관련해서 도와주실 수 있나요? 2 Seia 17.05.21.01:22 218
88 ssh 계정 2 ikuu7 17.05.18.02:12 213
87 이게 가능한지 궁금합니다! 7 image 조리퐁 17.05.16.19:26 280