我使用了godaddy之前给出的webformmailer.php,没有问题。现在在这个新网站上,不知什么原因,它不起作用了。有没有人能看看这段代码,告诉我它有什么问题,或者它缺少什么。
Thanks in Advance
<div id='form_wrap'>
<form id="contact-form" formaction="webformmailer.php" method="POST" >
<p id="formstatus"></p>
<textarea id="inputtext"></textarea>
<input type="text" name="name" value="" id="username" placeholder=" Full Name" />
<input type="text" name="email" value="" id="username" placeholder=" Email " />
<input type="submit" name ="submit" value="Submit" />
</form>
</div>
来,试一下。(应该可以,因为我没有你的webformmailer.php
代码)。
VALUE也为空。我给你放进去了。
<div id='form_wrap'>
<form id="contact-form" action="webformmailer.php" method="POST" >
<p id="formstatus"></p>
<textarea id="inputtext"></textarea>
<input type="text" name="name" value="username" id="username" placeholder="Full Name" />
<input type="text" name="email" value="email" id="email" placeholder="Email" />
<input type="submit" name="submit" value="Submit" />
</form>
</div>
这是假设您的表单处理程序包含一些影响:
$username = $_POST['username'];
$email = $_POST['email'];
您已指定:
formaction="webformmailer.php"
而不是
action="webformmailer.php"