묻고답하기

*************** 받는 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 남기남
강재용 오류가 나는데요;;... (다시한번 수정!)  
권명진 서브메뉴만들때... [1] 2007.08.10
김윤희 프레임셋으로 불러온 페이지에서... 질문입니다. [1] 2007.08.10
패러독스 MySQL명령으로 DB에 데이타를 입력하는데.. 애로사항이.. [2] 2007.08.10
오지영 제방법이 잘못되었나요;? [2] 2007.08.10
조성민 사랑비 BGM 플레이어 관련 메소드 호출에 관해서 질문이요 ㅠ_ㅠ [1] 2007.08.10
302 사랑비 bgm 이어듣기 문제.. [1] 2007.08.10
freud window에서 php를 돌릴때, 메일 발송하려면? [3] 2007.08.10
NOte; 오브젝트 태그에 관해서 [2] 2007.08.10
정부경 폼메일 [1] 2007.08.10
현이 온라인 테스트(시험) 문제 출력 관련 소스입니다. 이걸 수정하고 싶은데...  
andrew 2000 웹서버 [3] 2007.08.10
안젤레카 정말 허접한 질문 하나 할게요~ [1] 2007.08.10
박영신 게시판 만들때마다 고민되는게 있어서요... [3] 2007.08.10
레파 동영상 확장자 변환 하는 방법 [3] 2007.08.10
박보라 도와주세요~~ ip체크관련 질문이예요 [3] 2007.08.10
정부경 폼메일 관련질문입니다.. 빠른답변 부탁드립니다... 플리즈... [1] 2007.08.10
김군 도메인을 구입했는데.. 페이지 이동하면 주소가 바뀌네요.. [4] 2007.08.10
양이성 질문은 아니구요 그림 수정좀 부탁할려구 하는데요..  
김영준 주소창 입력으로 무단으로 자료 보는거 못막나여 [1] 2007.08.10
이세상끝까지. 아주 골때리는 사실을 하나 알았습니다. [7] 2007.08.10
밤거리 새로고침을 해도 사용자가 클릭해서 열었던 서브메뉴를 고정시키고 싶습니다. [1] 2007.08.10
freud 내장함수인 number() 와 string()에 대해서 알려주세요. [2] 2007.08.10
별의침묵 phpMyAdmin 2.5.6 셋팅 좀 도와주세요... [2] 2007.08.10
ZERO 현재 프레임 이름을 아는 법좀요- ㅠ_ㅠ; [4] 2007.08.10
이상준 서버공격? [3] 2007.08.10
쮸쮸봉 플래쉬 효과를 내려는데.... [1] 2007.08.10
rag php 관련 질문입니다. - 수정 [1] 2007.08.10
woosh 답글을 2가지 이상의 종류로 나누어서 입력이나 축력하려면....  
김민규 fopen()함수의 r 과 a 옵션에 대한 질문이요...