如何从PHP发送电子邮件并使表单字段响应

时间:2017-01-25 07:18:34

标签: php html5 forms contact-form

这是我插入send.php

的代码

代码是主题,他们忘记包含send.php或contact.php。

所以我需要知道插入这样的东西" sendcontact.php"在下面列出的现有代码中。

<div class="container">
        <div class="row">
          <div class="col-md-8">
                <div class="col-md-8 animated fadeInLeft">
           <h3 class="subTitle-contact">GET <span>IN TOUCH</span></h3>
           <p>veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni.</p>
           <div class="contact-form">
           <div class="col-md-6">
              <form class="form-horizontal" role="form">
                <div class="form-group">
                  <label for="inputName" class="col-sm-4 control-label">Your Name:</label>
                    <div class="col-sm-8">
                      <input type="name" class="form-control" id="inputName">
                    </div>
                </div>
                <div class="form-group">
                  <label for="inputName" class="col-sm-4 control-label">Phone No:</label>
                    <div class="col-sm-8">
                      <input type="name" class="form-control" id="inputName">
                    </div>
                </div>
              </form>
           </div>
           <div class="col-md-6">
             <form class="form-horizontal" role="form">
                <div class="form-group">
                  <label for="inputName" class="col-sm-4 control-label">E-Mail Address:</label>
                    <div class="col-sm-8">
                      <input type="name" class="form-control" id="inputName">
                    </div>
                </div>
                <div class="form-group">
                  <label for="inputName" class="col-sm-4 control-label">Company:</label>
                    <div class="col-sm-8">
                      <input type="name" class="form-control" id="inputName">
                    </div>
                </div>
              </form>
           </div>
           <div class="col-md-12">
           <form class="form-horizontal" role="form">
            <div class="form-group">
                <label for="inputMessage" class="col-sm-2 control-label">Message:</label>
                  <div class="col-sm-10">
                    <textarea class="form-control" rows="5" id="inputMEssage"></textarea>
                  </div>
              </div>
              <div class="form-group">
                <div class="submit-button">
                  <button type="submit"><i class="fa fa-envelope-o"></i></button>
                </div>
              </div>
              </form>  
            </div>
         </div>
         </div>

0 个答案:

没有答案