-1

我在我的网站上获取联系表时遇到问题!

页面链接。

这是HTML

<form id="contact-form">
                        <div class="success"> Contact form submitted! <strong>We will be in touch soon.</strong></div>
                        <fieldset>
                            <label class="name">
                                <input type="text" value="Enter Your Name:">
                                <span class="error">*This is not a valid name.</span>
                                <span class="empty">*This field is required.</span>
                                <span class="clear"></span>
                            </label>
                            <label class="email">
                                <input type="text" value="Enter Your E-mail:">
                                <span class="error">*This is not a valid email address.</span>
                                <span class="empty">*This field is required.</span>
                                <span class="clear"></span>
                            </label>
                            <label class="phone">
                                <input type="text" value="Enter Your Phone:">
                                <span class="error">*This is not a valid phone number.</span>
                                <span class="empty">*This field is required.</span>
                                <span class="clear"></span>
                            </label>
                            <label class="message">
                                <textarea>Enter Your Message:</textarea>
                                <span class="error">*The message is too short.</span>
                                <span class="empty">*This field is required.</span>
                                <span class="clear"></span>
                            </label>
                            <div class="buttons"><strong><a class="button" data-type="reset">Reset<span></span></a></strong><strong><a class="button" data-type="submit">Submit<span></span></a></strong></div>
                        </fieldset>
                    </form>

这是顶部的Javascript!

$(function(){
$('#contact-form').forms({ownerEmail:'brandon@kizukatech.com'}) 
});
4

2 回答 2

1

为了使联系表格起作用,输入的数据<form>必须</form>发送到某个地方。这是通过action=表单参数完成的,例如:

<form id="contactform" action="fireaway.php">
    //All your form fields go here
</form>

然后,您的网络服务器上必须有一个fireaway.php文件来实际进行处理。它接收联系表单发布的所有变量的值,构建电子邮件并发送电子邮件。

也许这个网站有你需要的东西。

于 2013-07-03T18:32:45.663 回答
0

您的表单不包含操作,因此提交表单不会执行任何操作。尝试这个:

<form id="contact-form" action="YOUR_SERVER_SIDE_PAGE" method="post"> 
于 2013-07-03T18:28:03.217 回答