• 목록
  • 아래로
  • 위로
  • 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 719
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 23.01.14.02:23 4391
공지 [필독] 질문하는 방법 17 마스터 18.02.23.03:09 4475
845 내 포인트는 어디서 확인하나요? 3 파이리 21.02.08.11:58 54
844 사이트 정보 등록글 링크가 뭐죠..? 2 파이리 21.02.07.20:11 56
843 미디어위키 SSH 업데이트 4 wikiowner 21.02.01.13:08 91
842 머신러닝 용도로 노트북을 구매하려고 하는데 MSI 게이밍 노트북도 괜찮을까요? 12 이니스프리 21.01.31.22:26 376
841 최근에 혹시 phpmyadmin 주소가 바뀌었나요? 2 막시모 21.01.28.17:42 75
840 [수강신청] Java 개론 강좌를 수강해도 괜찮을까요?? 9 image 이니스프리 21.01.23.22:30 155
839 php 1 wikiowner 21.01.22.11:10 69
838 예)www.123.com > 123.com리디렉트 질문 1 image HighSpeed 21.01.21.17:27 74
837 The lua binary is not executable 문구 1 wikiowner 21.01.20.13:17 78
836 가비아에서 www 붙이지 않고 접속하게 하는 방법 질문합니다. 2 HighSpeed 21.01.15.21:58 86
835 가비아 도메인 스터디 포 어스 연결되나요? 1 HighSpeed 21.01.15.17:28 68
834 도메인 개인정보 보호에 대해 질문합니다. 3 HighSpeed 21.01.12.19:24 124
833 아바스트 왜 이럴까요? 11 image 국내산라이츄 21.01.12.04:26 139
832 여러분들고 퍼미션 권한 바뀌나요? 1 HighSpeed 21.01.11.22:28 90
831 PHP 중복체크 관련 질문합니다 3 title: 에그joyful 21.01.09.21:58 127
830 SFU ssh 계정으로 ssh 접속이 안됩니다 8 wikiowner 21.01.06.13:36 169
829 [라이믹스] 스킨 설치가 안됩니다. 2 260578 20.12.31.08:43 110
828 Mac 입문! 10 갱생협스 20.12.27.22:31 188
827 저번에 쓴 글인 루아 오류가 여기 관리자분들중 한분이 해결해주셔야 한다고 하네요 5 image wikiowner 20.12.15.11:45 132
826 루아 오류??? 1 image wikiowner 20.12.14.10:34 100