묻고답하기

*************** 받는 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 남기남
류관선 str_replace() 이게 이해가 가질 않습니당 ㅡ,.ㅡ? [2] 2007.08.10
정명욱 이런 홈페이지는 어떻게 만들죠? [5] 2007.08.10
freud include()와 require()에 대해서 추가질문.. [1] 2007.08.10
김만수 hover, linked, visit 속성을 여러개? [1] 2007.08.10
김성현 ftp경로 안보이게 하려면... [4] 2007.08.10
다오케이 xp에서 mysql 사용중인 컴퓨터에서...봐주세요.  
박군의그녀 <p id="box"> 다시 질문이요  
왕초보 홈페이지 메인을 설계할때요...include를 사용할려고 하는데.. [1] 2007.08.10
유치뽕 플래시에서 메뉴를 다 만들었는데요~ [4] 2007.08.10
불청캑 동적으로 텍스트박스 만들기 질문이요..  
박군의그녀 <p id="box"> 질문 [1] 2007.08.10
madem 게시물 일괄수정에 대하여  
이병준 아파치에 대해서 궁금합니다 [1] 2007.08.10
스토비━ⓒ 윈도2003 서버질문 다른거-ㅁ- [2] 2007.08.10
스토비━ⓒ 윈도 2003 서버 질문드립니다. [2] 2007.08.10
redvin 인터넷이 이상해요-_ㅠ [1] 2007.08.10
김윤희 플레쉬에 대한 질문드려요.. 꼭 답변좀 해주세요..  
惡鬼。 이런 문자는 어떻게 쓰죠? [5] 2007.08.10
Wow-Ect 리눅스 서버 설치 후 제로보드 설치했는데, php 오류..;; [2] 2007.08.10
김민규 fopen()함수의 r 과 a 옵션에 대한 질문이요...  
woosh 답글을 2가지 이상의 종류로 나누어서 입력이나 축력하려면....  
rag php 관련 질문입니다. - 수정 [1] 2007.08.10
쮸쮸봉 플래쉬 효과를 내려는데.... [1] 2007.08.10
이상준 서버공격? [3] 2007.08.10
ZERO 현재 프레임 이름을 아는 법좀요- ㅠ_ㅠ; [4] 2007.08.10
별의침묵 phpMyAdmin 2.5.6 셋팅 좀 도와주세요... [2] 2007.08.10
freud 내장함수인 number() 와 string()에 대해서 알려주세요. [2] 2007.08.10
밤거리 새로고침을 해도 사용자가 클릭해서 열었던 서브메뉴를 고정시키고 싶습니다. [1] 2007.08.10
이세상끝까지. 아주 골때리는 사실을 하나 알았습니다. [7] 2007.08.10
김영준 주소창 입력으로 무단으로 자료 보는거 못막나여 [1] 2007.08.10