묻고답하기

*************** 받는 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 남기남
루팡쿠팡 @이즈야 님! [8] 2014.04.26 by prologos
Luatic™ 1.7.3.6 -> 1.7.4.1 로 업데이트 후 문제 [2] 2014.04.26 by Luatic™
휘빈a 게시판 댓글이 펼침이 안되여  
슈팅1106 방명록 프로필 사진이 안뜨는데 왜 그런거죠..?ㅠㅠ  
휘빈a 게시판에댓글 쓸때 사진 나오방법은 어떻게 하나요  
비상교육 소셜 xe 직접 발행하기 [1] 2014.04.27 by sejin7940
CoffeeMix 게시판에서 글을 쓸 때 음악이나 동영상을 첨부해서 페이지에 삽입하면 에디터상에서 항상 작은사이즈로 보이게끔 수정하는법 알고싶습니다. file  
브라운아이스 스킨 변경 방법 -- 초보질문 ㅠ [7] 2014.04.27 by 브라운아이스
스밀걸 xe 페이지에 배경음악은 깔수 있나요?? [3] 2014.04.27 by sudesign
바보멍청이 갑자기 사이트가 확 느려졌습니다. [1] 2014.04.27 by sudesign
스밀걸 모바일 페이지가 짤립니다. 답변부탁드립니다. [2] file 2014.04.27 by 스밀걸
스케이트보드 새창 열기  
스밀걸 모바일용 사진 슬라이드 되는 위젯 있나요~?? [1] 2014.04.27 by Double'U'
휘빈a 페이스 북 글을 제 윕사이트에 가져 올수 잇나요? [1] 2014.04.27 by Double'U'
junnpark 게시판 수정 권한 문제 [3] 2014.04.27 by LI-NA
브라운아이스 현재 메뉴얼 pdf는 옛날 버전인거죠? [2] 2014.04.27 by 브라운아이스
모얼더 홈서버를 이용할때 어느쪽이 좋을까요 [1] 2014.04.27 by mAKEkr
ttt22 mid 숨기는 방법 [7] 2014.04.27 by 상자님
슈팅1106 신고 버튼 보이게 할려면 무슨 모듈을 받아야하나요??? [1] 2014.04.27 by 바가G
자극남 소속된 그룹들의 마크를 동시에 출력 하려면 어떻게 해야 할까요?  
슈팅1106 방명록에 관한것인데 좀 도와주세요ㅠㅠㅠㅠㅠㅠㅠ제발ㅠㅠㅠ [13] 2014.04.27 by 바가G
카논비 잘나오던 홈페이지가 며칠전부터 404 메세지와 함께 안됩니다. ㅠ_ㅠ  
iMatt 새 게시판에 데이터 이전하다 Fatal Error 났습니다. [3] 2014.04.27 by Hyomini
체다보이 로그인이 안됩니다.Fatal error: Call to a member function getAction() [3] 2014.04.27 by Hyomini
루팡쿠팡 회원가입시에 회원 가입 폼에서 "서명" 란이 안보입니다. [7] file 2014.04.27 by CoffeeMix
joorans 흐르는 텍스트 혹은 배너 이미지 file  
휘빈a 제 페이스북 연동된 글들이 이상하네요 [3] file 2014.04.27 by KrteamENT
한별아빠 로그인 전/후 메인페이지 변환 [1] 2014.04.27 by teguh100
브라운아이스 xe 모바일 홈피의 스킨 이름이 뭐에요? 저도 이것처럼 만들고 싶은데.. [2] 2014.04.27 by 도메인8295
KrteamENT HTML호출 문제인가요? [16] 2014.04.27 by KrteamENT