• 목록
  • 아래로
  • 위로
  • 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. (58%) 274630/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 861
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 23.01.14.02:23 4540
공지 [필독] 질문하는 방법 17 마스터 18.02.23.03:09 4479
105 다수의 이미지의 중복 여부를 검사하는 방법이 있을까요? 12 이니스프리 20.07.08.12:19 167
104 백업 파일도 디스크 용량에 포함인가요? 3 마당쇠15 22.03.10.10:52 166
103 원격제어와 스트리밍을 막는 프로그램? 1 hidriqi 21.04.24.03:32 166
102 포트 포워딩 질문있습니다. 10 image asdf1234 21.02.24.16:56 166
101 웹 개발 언어를 만들어보려고 합니다 1 260578 18.11.13.23:11 166
100 호스팅 사용중 연장 질문 2 퓨처마츠 18.10.03.19:29 166
99 사이트 정보 등록 1 없음 19.01.05.09:58 165
문제가 무엇인가요? 1 260578 18.10.28.00:11 165
97 미디어위키 하;;;; 9 wikiowner 21.02.16.13:37 164
96 그누보드 설치시 오류 관련 질문 드리겠습니다. 4 image asdf1234 21.04.21.14:32 163
95 동영상 썸네일 만드는 것 관련하여 질문 드립니다. 2 이니스프리 21.02.20.14:51 163
94 [스포어] 원래 사용하고있던 서비스를 다른곳으로 옮기고 이 곳에 개인 블로그와 메모장을 만드려고 합니다. 1 260578 18.08.14.09:05 162
93 [스포어] 404, 403, 500페이지를 편집 할 수 있나요? 2 260578 18.07.26.12:11 162
92 사이트의 Slow query가 의심되어서 질문 드려요! ^^ 8 이니스프리 20.06.20.14:02 161
91 호스팅과 ftp 설정에서 용량 관련 1 마당쇠15 20.04.16.11:30 160
90 FTP 접속후 설치 화면 아뜨는증상 ? 3 핫슈 18.09.16.14:31 160
89 phpMyAdmin 접속시 mysqli_real_connect(): (HY000/1045): Access denied for user '000000'@'localhost' (using password: YES) 4 동파육 22.08.31.00:59 158
88 라라벨 설치 가이드 없을까요? 1 워시 21.10.27.14:55 158
87 어떤 문제인가요? 1 image 260578 18.09.01.12:10 156
86 [수강신청] Java 개론 강좌를 수강해도 괜찮을까요?? 9 image 이니스프리 21.01.23.22:30 155