묻고답하기

*************** 받는 php파일 *************

<?
        $todaydate = date('Y-m-d');

        if(!$name) {
                echo "<script language=javascript>
                                alert('이름을 입력하세요');
                                history.go(-1);
                          </script>";
                exit;
        }


if(!$email) {
                echo "<script language=javascript>
                                alert('E-mail주소를 입력하세요');
                                history.go(-1);
                          </script>";
                exit;
        }

if(!$tel) {
                echo "<script language=javascript>
                                alert('연락처를 입력하세요');
                                history.go(-1);
                          </script>";
                exit;
        }

if(!$title) {
                echo "<script language=javascript>
                                alert('제목을 입력하세요');
                                history.go(-1);
                          </script>";
                exit;
        }

if(!$comment) {
                echo "<script language=javascript>
                                alert('내용을 입력하세요');
                                history.go(-1);
                          </script>";
                exit;
        }

        $data = file("./email.txt");
        $admin_email = $data[0];

        $comment3 = ($comment);

        $comment1 ="
        날짜 : $todaydate
        이름 : $name
        이메일 : $email
        연락처 : $tel
        내용 :
        
        $comment3";

        $result = mail($admin_email, "$name님의 제품문의: $title", $comment1, "From:$name<$email>");

        if(!$result) {
                echo "<script language=javascript>
                                alert('메일이 전송에 문제가 있습니다');
                                history.go(-1);
                          </script>";
                exit;
        }
        else {
                echo "<script language=javascript>
                                alert('메일이 정상적으로 처리되었습니다');
                                history.go(-2);
                          </script>";
        }
?>


*************** 폼파일 htm파일 *************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>:::::다이나루브(Dyna-Lube) 아시아:::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.form.name.focus();" >
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="900" height="212">
        <param name="movie" value="img/top_order.swf">
        <param name="quality" value="high">
        <embed src="img/top_order.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="212"></embed></object></td>
  </tr>
  <tr>
    <td align="left" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="10" colspan="2"> </td>
        </tr>
        <tr>
          <td width="200" align="left" valign="top"><img src="img/title_qna.gif" width="192" height="82"></td>
          <td width="700" align="left" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <form name="form" method="post" action="./order.php">
                          <tr>
                <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="90" height="30"><div align="left"><img src="img/contact/bul_write.gif" width="8" height="8">
                          이름 </div></td>
                      <td width="704"><input
                   name=name class="box2" size="15">
                        (반드시 실명으로 입력해 주세요)</td>
                    </tr>
                    <tr>
                      <td height="1" colspan="2" bgcolor="#E1E1E1"></td>
                    </tr>
                    <tr>
                      <td height="30"><div align="left"><img src="img/contact/bul_write.gif" width="8" height="8">
                          E-mail</div></td>
                      <td><input  
                   name=email class="box2" size="35"> </td>
                    </tr>
                    <tr>
                      <td height="1" colspan="2" bgcolor="#E1E1E1"></td>
                    </tr>
                                        <tr>
                      <td height="30"><div align="left"><img src="img/contact/bul_write.gif" width="8" height="8">
                          연락처</div></td>
                      <td><input  
                   name=tel class="box2" size="35"> </td>
                    </tr>
                    <tr>
                      <td height="1" colspan="2" bgcolor="#E1E1E1"></td>
                    </tr>
                    <tr>
                      <td height="30"><img src="img/contact/bul_write.gif" width="8" height="8">
                        제목</td>
                      <td><input name=title  class="box2" size="75"> </td>
                    </tr>
                    <tr>
                      <td height="1" colspan="2" bgcolor="#E1E1E1"></td>
                    </tr>
                    <tr>
                      <td height="30" valign="top"><div align="left"><br>
                          <img src="img/contact/bul_write.gif" width="8" height="8">
                          글쓰기 </div></td>
                      <td height="185" valign="middle"><textarea name="comment" wrap=hard class="box3" style="WIDTH: 550px; HEIGHT: 170px"></textarea>
                      </td>
                    </tr>
                    <tr>
                      <td height="9" colspan="2" background="img/contact/contact_bg03.gif">
                      </td>
                  </table></td>
              </tr>
              <tr>
                <td align="right" valign="top"><TABLE WIDTH="120" height="30" BORDER="0" CELLPADDING="0" CELLSPACING="0">
                    <TR>
                      <TD align=left valign="bottom">  </TD>
                      <TD align=right valign="bottom"> <input name="imageField" type="image" src="img/contact/send.gif" width="60" height="22" border="0"></TD>
                      <TD width="55" align=right valign="bottom"><a href="javascript:history.go(-1);"><img src="img/contact/cancel.gif" border="0"><br>
                        </a> </TD>
                    </TR>
                  </TABLE></td>
              </tr></form>
            </table></td>
        </tr>
        <tr>
          <td height="10" colspan="2"> </td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><img src="img/bottom.gif" width="900" height="81"></td>
  </tr>
</table>
</body>
</html>



***********************

메일보내는거는 잘 도착합니다.
근데 제가 원하는건

이름:***
내용:***
이게 아니라
폼자체 그대로오는걸 원하는거거든요...

그럼 메일폼으로 다시 만들어서 보내야하는건가요?
그럼 그건 어떻게 해야하는지... 궁금합니다.

메일폼이야 만들면 되구.. 그걸 어떻게 보내구 어떻게 해야하는건지...
위에 소스를 조금만 바꾸면 해결이 되는건지...
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
브라운아이스 putty 수정문제 질문 [3] file 2014.04.28 by mAKEkr
박하향풍선껌 관리자 페이지 권한이 없다고 하네요 [3] 2014.04.28 by Double'U'
아웅졸려라 작성후 X일, X 시간, X분 , x초가 지났습니다 [2] 2014.04.28 by 아웅졸려라
휘빈a 홈페이지에 다음 뷰 를 달수 잇나요? [1] 2014.04.28 by Double'U'
루팡쿠팡 팀장닷컴 웹방화벽 사용해보신분? [4] 2014.04.28 by 루팡쿠팡
자야2 XE업그레이드시 주의해야할점좀 알려주세요. [3] 2014.04.28 by 자야2
콩까기 html에서 php파일 불러오는법! [8] 2014.04.28 by 콩까기
정창만 회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요? [4] 2014.04.28 by 웹배우러왔습니다
루팡쿠팡 이런것도 있는데 이거 괜찮나요? [4] 2014.04.28 by 웹배우러왔습니다
웹배우러왔습니다 트래픽 질문이요 [2] 2014.04.28 by 웹배우러왔습니다
희망규짱 콘텐츠?샵? [1] 2014.04.28 by 로이조52
붐이에요 컴포지션 멀티미디어 경로썻는데.. file  
도나텔로 프레임(?) 홈페이지 나누는법..  
CN- embed 화이트리스트 추가 문제 [11] 2014.04.27 by 청소년출입가능지역의족장
CoffeeMix 서명 수정 할 때 글자 수 제한 방법 알고싶습니다.  
가르송 자료실에 부트스트랩  
쿨럭이 1.4 에서 1.7업뎃 후 속도가 확떨어지는 이유는 왜일까요? [16] 2014.04.27 by 銀童
Hikooooon 글을 입력할때 /xxx 를 입력하면 결과에서 해당되는 이모티콘이 대신 치환되도록 [2] 2014.04.27 by Hikooooon
JerryKim 토탈커맨더 쓰시는분 계신가요? [2] file 2014.04.27 by 청소년출입가능지역의족장
바가G 회원가입 확장모듈에서 나이제한 설정하는 방법이 이게 맞나요? [2] 2014.04.27 by 바가G