好的,所以我对网页设计相当陌生。如何让我当前主题的联系表正常工作?这是当前的html。
我需要知道如何编写 PHP 文件;它是否正确?
<div class="form row-fluid clearfix">
<div class="field span5">
<label>Your name:</label>
<input type="text" value="" class="req" placeholder="Placeholder text..." />
</div>
<div class="field span5">
<label>Your email:</label>
<input type="email" value="" class="req" />
</div>
<div class="clearfix"> </div>
<div class="field full">
<label>Your comment:</label>
<textarea class="span12" cols="2" rows="7"></textarea>
</div>
<button class="extruded"><span>Submit</span></button>
</div>
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$from = 'From: iclear';
$to = 'sales@tangledindesign.com';
$subject = 'Hello';
?>
以及如何链接该联系表单的 PHP 文件?