입력한 내용을 전달해서 보여주는 사이트를 만들고 싶은데 잘 안되네요

leaveto32의 이미지

processorder.php

<?php
        $naeyong = $_POST['naeyong'];
        $daesang = $_POST['daesang'];
        $hasinbun = $_POST['hasinbun'];  
 
?>
<html>
    <head>
        <title>단어위키 사용자 신고 - 접수 완료!</title>
    </head>
    <body>
        <?php
        $fp = fopen("/web/board/order.txt", 'at');
        fwrite($fp, "$naeyong \n $daesang \n $hasinbun \t");
        fclose($fp);
        echo '<h2>전달되었습니다.</h2>';
        echo '<p>이제 창을 닫으셔도 됩니다.</p>';
        ?>
    </body>
</html>

2.html
<html>
    <head>
        <title>단어위키 사용자 신고 - 접수중</title>
        <meta charset="utf-8">
    </head>
    <body>
        <h1>차단을 요하는 사용자 신고</h1>
        <h2>이 내용은 단어위키 관리자에게 전달됩니다.</h2>
        <form action="processorder.php" method="post">
            <table border="1">
                <tr bgcolor="#fff8dc">
                    <td width="300">신고 내용</td>
                    <td width="50">신고 대상 ID</td>
                    <td width="50">신고 하신분 ID</td>
                </tr>
                <tr>
                    <td align="center"><input type="text" name="naeyong" size="100" maxlength="99"></td>
                    <td align="center"><input type="text" name="daesang" size="49" maxlength="48"></td>
                    <td align="center"><input type="text" name="hasinbun" size="49" maxlength="48"></td>
                </tr>
                <tr>
                    <td colsapn="1" align="center"><input type="submit" value="보내기"></td>
                </tr>
            </table>
        </form>
    </body>

vieworders.php
<HTML>
    <head>
        <title>신고 내역 조회</title>
</head>
<body>
    <h1>신고 내역 조회</h1>
<?php
    $ROOTDOCU = $_SERVER['DOCUMENT_ROOT'];
    fopen("web/board/orders.txt", 'r');
?>
</body>
</html>

어떤게 문제인지 알려주시면 고맙겠습니다.
세벌의 이미지

이렇게 물어보면 바라는 답 얻기 어렵습니다.
어떻게 나오길 바라는지?
실제는 어떻게 나오는지?
구체적으로 써 주세요.

leaveto32의 이미지

2.html에서 신고 내용과 신고자 아이디, 신고 대상 아이디를 입력하면 processorder.php에서 받아서 전달되었음을 알린 후, vieworders.php파일에서 열어서 보려고 합니다.
개인 사이트 신고 화면에 쓸 것이기 때문에 보안은 상관 없습니다.

지금은 화면에서 보이기는 하는데 저장된 내용이 불러와지지 않습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.