-2
這是我創建的HTML聯繫人表格,我一直試圖讓PHP代碼能夠正常工作,但我不確定處理這個問題的最佳方式。我已經通過其他問題,並在那裏他們使用單獨的文件解答閱讀我不是PHP的專家,但我可以承擔這兩個文件必須按名稱鏈接,這是HTML表單我有:html5與PHP的聯繫表格
<section class="our-contacts slideanim" id="contact">
<h3 class="text-center slideanim">Contact Us</h3>
<p class="text-center slideanim">Got a project in mind? Shoot as an email below!</p>
<div class="container">
<div class="row">
<div class="col-lg-12">
<form role="form">
<div class="row">
<div class="form-group col-lg-4 slideanim">
<input type="text" name="name" class="form-control user-name" placeholder="Your Name" required/>
</div>
<div class="form-group col-lg-4 slideanim">
<input type="email" name="email" class="form-control mail" placeholder="Your Email" required/>
</div>
<div class="form-group col-lg-4 slideanim">
<input type="tel" class="form-control pno" placeholder="Your Phone Number" required/>
</div>
<div class="clearfix"></div>
<div class="form-group col-lg-12 slideanim">
<textarea name="message" class="form-control" rows="6" placeholder="Your Message" required/> </textarea>
</div>
<div class="form-group col-lg-12 slideanim">
<button type="submit" href="#" class="btn-outline1">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
閱讀形式'action'屬性[here](http://stackoverflow.com/a/8395283/3097877)或[here](https://www.w3schools.com/tags/att_form_action.asp ) –
您可以使用相同的文件來照顧發送消息,或使用其他文件。如果你想使用同一個文件,你將不得不在頂部添加一個if語句來檢查你是剛加載頁面還是提交了一個表單。你也可能想把'as'改成'us' – RST