本文介绍了Wordpress Contact Form 7插件在控制台上返回JS错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
wordpress联系表格7插件在控制台上返回js错误.这是联系表格.错误发生在自动生成的代码上 插件本身
wordpress contact form 7 plugin returns js error on console.this is the contact form . the error is on auto genarated code by the plugin itself
<div class="row">
<div class="col-xs-12 col-sm-4">
[text* your-name class:wpcf7-form-control wpcf7-text placeholder "Your Name"]
[email* your-email class:wpcf7-form-control wpcf7-text wpcf7-email placeholder "E-mail address" ]
[text your-subject class:wpcf7-form-control wpcf7-text placeholder "Subject"]
</div>
<div class="col-xs-12 col-sm-8">
[textarea your-message class:wpcf7-form-control wpcf7-textarea class:txt placeholder "Message"]
[submit class:wpcf7-form-control wpcf7-submit class:btn class:btn-primary "SEND MESSAGE" ]
</div>
</div>
推荐答案
解决了所有问题.
$email = mail(get_option("admin_email"),trim($_POST[your_subject]),stripslashes(trim($_POST[your_message])),$headers, "[email protected]");
这篇关于Wordpress Contact Form 7插件在控制台上返回JS错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!