php提交按钮无法正常工作"问题不是发送电子邮件"

时间:2017-03-14 18:57:51

标签: php html twitter-bootstrap-3

我的问题是没有发送电子邮件,问题是点击后提交没有任何反应甚至回声不起作用 我在Bootstrap中有一个表单。有一个名为"提交"的按钮。点击表单中输入的内容时,应将其发送到电子邮件地址。虽然当我点击"提交"没有任何反应。

<?php


  if (isset($_REQUEST['email']))  {

  echo "sadfsdagsdgsdg";
        }

?>

HTML

 <form method="post" class="form floating-label text-left form-validate" name="frm" id="frm" >

                    <div class="row">
                      <div class="col-md-6">
                        <div class="form-group">
                            <input type="text" class="form-control" id="Name" name="Name" required data-rule-minlength="2" />
                            <label for="Name">Name</label>
                          </div>
                      </div>

                      <div class="col-md-6">
                        <div class="form-group">
                          <input type="text" class="form-control" id="Contactnumber" name="Contactnumber" data-rule-number="true" required />
                          <label for="Contactnumber">Contact Number</label>
                        </div>
                      </div>                         

                    </div>

                    <div class="row">
                      <div class="col-md-6">
                        <div class="form-group">
                          <input type="email" class="form-control" id="Emailaddress" name="email" required />
                          <label for="Emailaddress">Email Address</label>
                        </div>                            
                      </div>

                      <div class="col-md-6">
                        <div class="form-group">
                          <select id="guestDetails" name="guestDetails" class="form-control select2-list dirty" required>
                            <option value="">Select your gang</option>
                            <option value='cap'>Cap - N1,000</option>
                            <option value='gele'>Gele - N2,500</option>
                            <option value='agbada'>Agbada - N13,500</option>
                            <option value='lace_gele'>Lace with Gele - N12,500</option>
                            <option value='lace_asooke'>Lace with Aso-Oke - N13,500</option>
                            <option value='adult_lace'>Adult's Lace with Aso-Oke - N20,000</option>
                          </select>
                          <label for="guestDetails">Cap/Gele/Lace/Agbada</label>
                        </div>
                      </div>
                    </div>


           <div class="rsvp-button text-center">

                        <button type="submit"  name="submit" value="submit" class="hvr-sweep-to-right">Submit</button>

                  </div> 
                  </form>

1 个答案:

答案 0 :(得分:-1)

尝试使用

<input type="submit" value="Submit" class="hvr-sweep-to-right">

而不是

<button type="submit" name="submit" value="submit" class="hvr-sweep-to-right">Submit</button>