Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Variables 第92行template-contact.php中未定义的变量_Variables_Undefined - Fatal编程技术网

Variables 第92行template-contact.php中未定义的变量

Variables 第92行template-contact.php中未定义的变量,variables,undefined,Variables,Undefined,我有一个wordpress网站,在我的联系人页面上的表单上方有一条错误消息 错误消息如下: 注意:未定义变量:第92行的/home/crea6303/public_html/westAfricanPimping.com/wp-content/themes/waseps-custom/template-contact.php中的success template-contact.php代码为: <?php if($success) { echo " <div class=\"info-m

我有一个wordpress网站,在我的联系人页面上的表单上方有一条错误消息

错误消息如下:

注意:未定义变量:第92行的/home/crea6303/public_html/westAfricanPimping.com/wp-content/themes/waseps-custom/template-contact.php中的success

template-contact.php代码为:

<?php if($success) {
echo "
<div class=\"info-message\" style=\"background-color: #75a226;\">
<a href=\"#\" class=\"close-info\"><i class=\"fa fa-times\"></i></a>
<p><strong>".__('Success:', DAT_NAME)."</strong>".__('The Message has been sent', DAT_NAME)."</p>
</div>";
} ?> 
我不知道如何解决这个问题…有人能帮忙吗

多谢各位
Ferg

也许你想知道!空$success{,如果你不在乎,变量是否存在。但问题是,$success变量应该来自哪里。谢谢你的回复…这是一个好问题,我不知道如何回答。同时,我已经做了你建议的更改,错误消息已经消失了…谢谢你。现在我需要检查一下联系人表单…祝你好运。我已经测试了联系人表单,我认为变量一定与表单发送后清除字段有关,因为在成功消息弹出后字段不清除。我可以接受这一点…再次感谢。