2016-06-14 14 views
-1

誰かがこのHTMLフォームに電子メールで結果をメールするために、別のPHPファイルに何を入れるべきか教えてもらえますか?私は何をすべきか分かりません。私はオンラインからPHPファイルをコピーしようとしました。それは恐ろしいです。HTMLとPHPの電子メールフォームが動作しない

 <form id="form_1138955" class="appnitro" method="post" action="/form/contact-form.php"> 
       <div class="form_description"> 
     <h2>Contact Us</h2> 
     <p></p> 
    </div>      
     <ul > 

       <li id="li_1" > 
    <label class="description" for="name">Name* </label> 
    <span> 
     <input id="name_first" name= "name_first" class="element text" maxlength="255" size="8" value=""/> 
     <label>First</label> 
    </span> 
    <span> 
     <input id="name_last" name= "name_last" class="element text" maxlength="255" size="14" value=""/> 
     <label>Last</label> 
    </span> 
    </li>   <li id="li_3" > 
    <label class="description" for="email">Email*</label> 
    <div> 
     <input id="email" name="email" class="element text medium" type="text" maxlength="255" value=""/> 
    </div> 
    </li>  <li id="li_4" > 
    <label class="description" for="phone">Phone*</label> 
    <span> 
     <input id="phone_123" name="phone_123" class="element text" size="3" maxlength="3" value="" type="text"> - 
     <label for="phone_123">(###)</label> 
    </span> 
    <span> 
     <input id="phone_456" name="phone_456" class="element text" size="3" maxlength="3" value="" type="text"> - 
     <label for="phone_456">###</label> 
    </span> 
    <span> 
     <input id="phone_7890" name="phone_7890" class="element text" size="4" maxlength="4" value="" type="text"> 
     <label for="phone_7890">####</label> 
    </span> 

    </li> 

       <li class="buttons"> 
      <input type="hidden" name="form_id" value="1" /> 

      <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> 
    </li> 
     </ul> 
    </form> 
+2

ページには内容がないので、なぜそれが空白ではないと思うのか分かりません。 – Quentin

+0

あなたは '// <-----あなたのメールアドレスをここに入れましたか? ' – j08691

+0

メールが送信されると、エコーがないので空白のページが表示されます。もし最初は '正しくないです()'関数を死亡している、 'ダイ()'関数であるべきとdied'は、彼らが定義した関数である 'ない限り、それはパラメータ –

答えて

-2

あなたは次のようにいくつかの設定を置く必要があります:送信者メール&パスワード

    1. プロトコル(SMTP、メール、等。)
    2. メールポート - READ HERE
  • 関連する問題